Home » Infrastructure » Linux » autoscheduling
autoscheduling [message #98938] Sun, 09 November 2003 01:43 Go to next message
M. Khaled
Messages: 67
Registered: April 2002
Member
How could i run schedule command in linux.suppose i want to stop network service after some interval.How this could be written in linux .This should be run after restarting the computer even.And the command history should also be deleted.please give me a clear example.I tried using at but could not scced fully...

Please help
Re: autoscheduling [message #98945 is a reply to message #98938] Tue, 25 November 2003 06:32 Go to previous message
Frank Naude
Messages: 4579
Registered: April 1998
Senior Member
Hi,

You can write a shell script to perform the required actions and schedule it with CRON (do a "man crontab" for details).

I'm not sure how to stop/start the network, but it can probably be done with the "ifconfig ... down/up" command.

You can clear your command history by truncating the $HISTFILE file ($ > ~/.bash_history)

Best regards.

Frank
Previous Topic: oracle on linux
Next Topic: backup+recovery on different architecture
Goto Forum:
  


Current Time: Thu Mar 28 18:47:06 CDT 2024