LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-29-2004, 07:21 PM   #1
DropSig
Member
 
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
Starting a program with a given process id


I want to start Python idle with a given process id (let say 9995) to be able to make an iptables policy to that id to allow the connection.
 
Old 09-29-2004, 08:41 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
In simple terms: you can't.

The kernel assigns PIDs as it goes. The alternative for
you would be to start that process from rc.local, and have
the PID found afterwards, and modify the iptables rule
based on that.



Cheers,
Tink
 
  


Reply



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
Starting process on display :1 noware Linux - General 8 12-01-2005 06:52 AM
a questions about starting process fetsh Linux - Newbie 2 06-03-2005 07:42 PM
K3B freezing when starting burn process Ian.hill Linux - Software 7 04-13-2004 06:11 AM
rsh starting a background process clockworks Linux - Software 0 03-04-2004 09:33 AM
Starting anther process rklosinski Programming 5 12-05-2002 08:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:17 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
Open Source Consulting | Domain Registration