converting .swf to .mpg

Leo Cacciari leo.cacciari at gmail.com
Wed May 14 15:47:52 UTC 2008


Il giorno mer, 14/05/2008 alle 10.37 -0500, Tommy Trussell ha scritto:
> On 5/14/08, Patton Echols <p.echols at comcast.net> wrote:
> >
> > I found in /etc/cron.daily a script titled "dlocate" with the following
> >  contents
> >  ================
> >  #! /bin/sh
> >
> >  DPKGLIST=/var/lib/dlocate/dpkg-list
> >
> >  # exit if dlocate is uninstalled but not purged
> >  test -x /usr/sbin/update-dlocatedb || exit 0
> >  # update dlocate database
> >  /usr/sbin/update-dlocatedb >/dev/null
> >
> >  # update 'dlocate -l' emulation
> >  LINES=40 COLUMNS=200 dpkg -l "*" | sed -e '1,5d' -e 's/  */ /g' >$DPKGLIST
> >
> >  =================
> >
> >  not sure it makes sense to me why it calls for writing update-dlocatedb
> >  to /dev/null
> >  seems pointless, but then I don't know what the last line does either.
> 
> The script is sending any output from running the command to /dev/null
> (also known as the "bit bucket" or in other words "nowhere").
> Presumably whatever prints on the terminal when you run that command
> is not useful in any way when run as a cron job. If it was, you could
> capture it in a log somewhere.
> 
Problem is: the output of the script, if any, is sent to the owner of
the job (in this case is root, and thus the mail gets redirected to the
main ubuntu user). Thus, unless you want to receive a mail with those
data, you redirect output to /dev/null. In other cases, you even
redirect error messages there (by adding a 2>&1)

Enjoy

-- 
Leo 'TheHobbit' Cacciari

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Questa รจ una parte del messaggio	firmata digitalmente
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080514/5cf7c2aa/attachment.sig>


More information about the ubuntu-users mailing list