at works fine and it does a slightly different job than corn. at is
generally one time stuff, cron is for periodic stuff.
You don't need the /bin/sh line
secondly the cd will not occur in the shell you create because that its
a subshell of the at process.the cd will occur in the shell created by
at which then exits

Cheerio
Robin
 

Devdas Bhagat wrote:
> > What do you mean by /bin/sh?
> /bin/sh is one of the shells. Standard shell on most unices.
> 
> > I have created a small file called l.txt which has simple 2 statements
> >
> > /bin/sh
> > cd /usr/local
> >
> > tho' it creates a bash shell it does not go to the specified directory.
> > what could be the problem
> Try listing the Present Working Directory with pwd.
> It will be in /usr/local (assuming you have read permissions there).
> Otherwise put a echo statement there
> -----Begin-----
> cd /usr/local
> echo "In /usr /local"
> -----End-----
> Devdas Bhagat
> --
> Bad Command: Go stand in the corner.
> 
> -----------------------------------------------------------------------
> The LIH mailing list archives are available at:
> http://lists.linux-india.org/cgi-bin/wilma/linux-india-help

-- 
_END_
Robin S Chatterjee Yahoo pager ID -Robinchatterjee
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
FAX 1-(815)550-6171
Robin's Poetry Pages
http://www.geocities.com/singerosongs
Robin's Perl Pages
http://www.geocities.com/robinchatterjee

-----------------------------------------------------------------------
Check out the 'What to do before posting to the list' site
for a list of things to try before posting.  The site is
at http://botsie.tripod.com/beforeposting/

Reply via email to