Hi,
I am trying to automatically change to a directory using the at command. But it is not happening. However, when I tested the command by using echo it worked. What might be the issue. Or is it not possible to do that using this command.
I am a beginner and am using guides from the Linux Documentation Project.
Thanks,
Nitish
Scheduling Directory Changes using at command
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Scheduling Directory Changes using at command
No. It is not possible.
At runs a program that contains its own environment. That program cannot change the environment of another.
You might want to read http://rute.2038bug.com/index.html.gz
At runs a program that contains its own environment. That program cannot change the environment of another.
You might want to read http://rute.2038bug.com/index.html.gz
Re: Scheduling Directory Changes using at command
Is the only solution to this ?
Code: Select all
crontab
Re: Scheduling Directory Changes using at command
What do you actually want to do? I mean after you cd to a directory...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Scheduling Directory Changes using at command
I am learning the basics, so I wanted to just try changing the directory at a specified time and open a text file present there. I am trying this o just grasp the concept better.
Re: Scheduling Directory Changes using at command
I'd pick a different thing to try to do. Interacting with a GUI from within cron or at is not something I'd choose to do.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Scheduling Directory Changes using at command
Things like?