I want to make shell scripts that auto kill after a certain amount of time, or at a certain time. if this is possable, what should i use in the script.
I want to make shell scripts that auto kill after a certain amount of time, or at a certain time. if this is possable, what should i use in the script.
You can usehas to be positiveCode:sleep 10
DUAL BOOT XP & Natty, Trying LFS
I dont know shell scripting sorry, but I heard of the sleep command I found an example on google, http://www.devdaily.com/blog/post/li...-sleep-command also after the sleep command you could add "kill" what ever process you want to end. Maybe post your script someone might help with it
DUAL BOOT XP & Natty, Trying LFS
I used this one for a problem I had
Code:#!/bin/bash sudo ifconfig eth0 down sleep 5 sudo ifconfig eth0 up firefox &
DUAL BOOT XP & Natty, Trying LFS
oh i think your using the script for disconnecting your eth0 connection for 10 sec and re-enabling after 10 sec . nice script . ok i have a modem with connection name as " R " . so how can i down it . i have tried as you given . but i got as this .
thanks in advance ,Code:assassin@genupulas:~$ sudo ifconfig R down R: ERROR while getting interface flags: No such device
Dont miss anything even it is small. one small pin is enough to bring down a man.
That was an example for "sleep" command
DUAL BOOT XP & Natty, Trying LFS
Bookmarks