Re: Bash script problem [OT] - Solved

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Mar 08, 2008 at 09:22:42AM +0000, Arthur Dent wrote:
> 
> I have no idea why this doesn't work - environment variables perhaps?
> 

Well, I managed to fix this.

What I did was to set up an "at" job for the future (which worked)
and then look at all the environment variables for the at job. Then, one
by one I tried them in my script until it worked from cron.

The line that did it was:

${SHELL:-/bin/sh} << `(dd if=/dev/urandom count=200 bs=12>/dev/null|LC_ALL=C tr -d -c '[:alnum:]')`

I have no idea what it does (if anyone would care to explain it to me I
would be interested) but all I know is it works!

Thanks to all...

Mark

Attachment: pgpTUPWbpPAAO.pgp
Description: PGP signature

--
fedora-selinux-list mailing list
fedora-selinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux