Search Results

Search: Posts Made By: Fl3tchLiv3s
1,890
Posted By Fl3tchLiv3s
Do you know if it is possible to open a new shell...
Do you know if it is possible to open a new shell from within the script which you can perform the echo and then exit back to the parent?

I tried

ksh
echo $$
exit
echo $$

But it never...
1,890
Posted By Fl3tchLiv3s
I feared that might be the answer. Having...
I feared that might be the answer.

Having looked about a bit, I thought that:

echo $$
(echo $$)

would produce different spids as one is run in a subshell. However this outputs the same...
1,890
Posted By Fl3tchLiv3s
Prallel function with different shell ids
Hi,
I have a script as follows


func1()
{
echo $$
}

func1
func1

This returns the id of the current shell twice so outputs:
4201
4201

I'd like to change this script so the...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy