![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| attach process from another ssh session | raphinou | UNIX for Advanced & Expert Users | 2 | 05-05-2009 05:07 PM |
| I am not able to login in gnome session and java session in Sun solaris 9& 10 | durgaprasadr13 | SUN Solaris | 0 | 12-10-2008 09:13 AM |
| Can a child process return a specific value to a parent process ? | Ametis1970 | High Level Programming | 8 | 04-09-2008 11:22 PM |
| sqlplus session being able to see unix variables session within a script | 435 Gavea | Shell Programming and Scripting | 2 | 07-03-2006 10:11 AM |
| Starting second X session | dangral | Linux | 2 | 07-18-2004 10:16 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
starting a bash session as child process to another bash session from a process
Hi
I want to do something that might sound strange. I have a code that in written in C and is executed at startup (it's a custom process). It occasionally calls some bash scripts. The process doesn't have any terminal associated with it. One thing I don't know how to do is to start a bash session as a child to another bash session. Here's an example: $ ps au USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 2379 0.0 0.0 3360 1624 ttyS0 Ss 16:11 0:00 -bash root 2691 0.0 0.0 2876 988 ttyS0 R+ 16:37 0:00 ps au I have a bash session already running with PID 2379 and say I want to start a bash session as a child to that session so that I could actually see it in "ps au" output. But this session should be started by the process. Anybody any ideas how I can do this? Thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|