LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-10-2010, 02:39 AM   #16
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644

You could have the script do 'echo $$' .. it's a special variable which is the pid for 'self'

cheers
 
1 members found this post helpful.
Old 09-10-2010, 03:18 AM   #17
koshihaku
Member
 
Registered: Aug 2010
Posts: 50

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kbp View Post
You could have the script do 'echo $$' .. it's a special variable which is the pid for 'self'

cheers
I write that at the first line of my script, and it works, thanks!
 
Old 09-10-2010, 03:20 AM   #18
koshihaku
Member
 
Registered: Aug 2010
Posts: 50

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kbp View Post
You could have the script do 'echo $$' .. it's a special variable which is the pid for 'self'

cheers
and I have a python xxxx in the script, if I want my script run well, do I need to nice -20 pidof_python too?
 
Old 09-10-2010, 08:53 AM   #19
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
Yes... the shell script is just a wrapper
 
  


Reply

Tags
memory, rss, script


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Who can give me an advice? MondayGirl General 6 03-20-2007 03:27 PM
Please give advice ja21pu Linux - Hardware 2 07-21-2006 11:52 AM
Give me advice Getright for Linux xprometeus Linux - Software 3 11-13-2005 04:19 AM
Could someone Give Advice jandrews Linux - General 7 10-19-2003 12:16 AM
Please give your advice, tips, and comments. gsmonk Linux - Networking 1 04-05-2003 09:57 PM


All times are GMT -5. The time now is 12:25 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration