Scheduling Directory Changes using at command

General support questions including new installations
Post Reply
nitish316
Posts: 4
Joined: 2014/03/11 07:24:36

Scheduling Directory Changes using at command

Post by nitish316 » 2014/03/11 07:32:20

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

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Scheduling Directory Changes using at command

Post by gerald_clark » 2014/03/11 13:08:02

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

nitish316
Posts: 4
Joined: 2014/03/11 07:24:36

Re: Scheduling Directory Changes using at command

Post by nitish316 » 2014/03/12 07:12:06

Is

Code: Select all

crontab
the only solution to this ?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Scheduling Directory Changes using at command

Post by TrevorH » 2014/03/12 09:06:10

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

nitish316
Posts: 4
Joined: 2014/03/11 07:24:36

Re: Scheduling Directory Changes using at command

Post by nitish316 » 2014/03/13 04:53:26

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.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Scheduling Directory Changes using at command

Post by TrevorH » 2014/03/13 11:11:22

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

nitish316
Posts: 4
Joined: 2014/03/11 07:24:36

Re: Scheduling Directory Changes using at command

Post by nitish316 » 2014/03/13 11:51:22

Things like?

Post Reply