[Techtalk] Newbie & crontab

Carla Schroder carla at bratgrrl.com
Tue Nov 16 06:29:18 EST 2004


On Monday 15 November 2004 8:17 am, Conor Daly wrote:
> On Mon, Nov 15, 2004 at 01:03:01PM +0000 or so it is rumoured hereabouts, 
> Conor Daly thought:
> > 
> > In the meantime, to get you started:
> > Try creating a script with your command in it like this:
> > 
> > o echo "#!/bin/bash" > myscript
> > o echo $PATH >> myscript
> > o vi myscript
> 
> ICK!! Got that wrong!  It's more like this:
> 
> o echo '#!/bin/bash' > myscript
> o echo "PATH="$PATH >> myscript
> o vi myscript
> 
> Note the use of single quotes rather than double and the "PATH=$PATH"
> rather than just $PATH
> 

This is all very kewl and geeky, but I'm not getting why it's necessary. If 
you use the full pathname to your command or script in the crontab, why do 
you need all this other stuff?

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Carla Schroder
this message brought to you
by Libranet 2.8 and Kmail
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


More information about the Techtalk mailing list