LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2007, 07:02 AM   #1
arub
LQ Newbie
 
Registered: Sep 2007
Location: Coimbatore , India
Distribution: Fedora
Posts: 16
Blog Entries: 2

Rep: Reputation: 0
check for p-id and shutdown


Hello all.

i need a script check for a particular process id .if it exist the the same script should be run after 15 mis. i know about crontab. but i don't want to use because it can chance to run with out my knowledge.and by using "at" is perfect. i have little bit idea but can't complete the script.
 
Old 11-09-2007, 11:19 PM   #2
DropSig
Member
 
Registered: Apr 2004
Location: East of Quebec
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
ok and what about shutdown?
you should post what u have for script
 
Old 11-11-2007, 10:11 PM   #3
arub
LQ Newbie
 
Registered: Sep 2007
Location: Coimbatore , India
Distribution: Fedora
Posts: 16
Blog Entries: 2

Original Poster
Rep: Reputation: 0
means halt the system
 
Old 11-12-2007, 05:18 PM   #4
DropSig
Member
 
Registered: Apr 2004
Location: East of Quebec
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
lol ya i know what shutdown means....
and iw would be easier with the part of the script youve figured out.
look at ps | grep and the sleep command
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Force filesystem check after improper shutdown? Phaethar Linux - General 6 04-23-2011 09:12 PM
Linux full shutdown vs. manual shutdown? LQtoto Linux - General 9 01-26-2005 07:21 PM
Partition check, check double check Vincentius Linux - General 0 12-25-2004 06:47 AM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 03:10 AM
Unclean shutdown from power failure... filesystem check errors macisaac Linux - General 4 12-26-2003 08:50 PM


All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration