how to Launch an independent process.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to Launch an independent process.
# 1  
Old 03-10-2005
how to Launch an independent process.

Hello,

I needed a help please...

I have an application which launches process. For this i am using fork and execv method calls. By doing this my launched process are now child process of the parent process(launching process). I dont want this to happen, i want the process that is launched to be an independent process, not a child process. how do i achieve this.

As i know, daemon process are used to run a process at background. For me i just want the launched process to run independently.

Please help me with this problem, as soon as possible.

Thanks and regards,
deepthi

email : email removed

Last edited by RTM; 03-10-2005 at 10:13 AM..
# 2  
Old 03-10-2005
See this thread and note # 10.

Then look at the man page for nohup, batch, and/or crontab. Also search the forums for those words.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

1 VPS with 2 IP addresses. How to make them independent?

I have this in /etc/network/interfaces: auto ens3 iface ens3 inet static address 46.xx.xxx.1x7 netmask 255.255.252.0 broadcast 46.38.xxx.255 gateway 46.xx.xxx.1 auto ens3:0 iface ens3:0 inet static address 188.xx.xx.xx5 netmask... (0 Replies)
Discussion started by: Douro
0 Replies

2. UNIX for Dummies Questions & Answers

Independent column sorting

Dear All, I have a set of columns (usually unknown number) and I would like to sort each of them (descending values) but my columns are independent. Can you please help me file1 1,5,7 3,4,9 2,6,8 outcome should be 1,4,7 2,5,8 3,6,9 I have tried sort -n -k1,1 -k2,2 -k3,3 but this... (8 Replies)
Discussion started by: A-V
8 Replies

3. Shell Programming and Scripting

Session independent process

Hi i am trying to run a report which takes approx 5 hours to complete so what i did i put that reporting command in background and then this reporting process started executed in background but the problem is when i close that session that background job lost :( .... please help me that... (3 Replies)
Discussion started by: aishsimplesweet
3 Replies

4. Solaris

Start process independent from TERMINAL (or also with PPID 1)

Hi *, please, I need fast tip (help). I have a process starting through /etc/rc3.d/xxxx script. However, sometimes (mostly because of testing reasons) I need to stop the process, change something and then start it again. But: 1) when I start it in terminal, the process dies when I leave the... (2 Replies)
Discussion started by: freeangel
2 Replies

5. UNIX for Dummies Questions & Answers

Machine Independent??

Hi What do we mean when we say " Unix is Machine Independent?" Can anybody explain with example? Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

6. Programming

How to launch a new process

Hi, I have a situation where a C main program needs to call another C main program, my background is mostly Windows and I'm new to UNIX programming. I've read about system(), fork(), and exec() and I'm a little confused as to what the sequence of steps should be to launch another process. By the... (5 Replies)
Discussion started by: hr94131
5 Replies

7. Shell Programming and Scripting

Position independent Parameter passing

Hi all, When parameters are passed to the shell script, they are dereferenced by their position. For example, I call myTest.sh and pass two parameters param1 and param2 as following: ./myTest.sh param1 param2 In the script, myTest.sh, I refer to first parameter (param1 ) as $1 and second... (1 Reply)
Discussion started by: sonaluphale
1 Replies

8. UNIX for Advanced & Expert Users

is syslogd logging locale independent?

Just wanna know whether syslogd logs messages in a locale-independent fashion. I want to read the date/time format from log files. Normally the date/time is of the form Jan 23 04:11:30. can this date/time information found in log files be different for different locales?? (2 Replies)
Discussion started by: sudesh
2 Replies

9. Shell Programming and Scripting

launch & monitor process on remote host

Hi, I am working on HPUX11 systems. I intend to achieve following: Need to write a shell script that will launch a program on remote UNIX machine. It will be gr8 if in addition, the remote process can be monitored using some feedback. I donno how to use rsh / ssh for this. (specifying... (1 Reply)
Discussion started by: mrx
1 Replies

10. Filesystems, Disks and Memory

making the application session independent

Hi all, I am actually new to Unix programming and this is my first question to this forum. I have an application and i want it to run independent of the command shell. For example, i run the application from a telnet session. But when i close my session, application is terminated. I just... (2 Replies)
Discussion started by: bokhari_jawad
2 Replies
Login or Register to Ask a Question