Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-29-2004, 08:21 PM   #1
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, 09:41 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
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.



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

All times are GMT -5. The time now is 04:00 AM.

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