Calling a script from a terminated script
Rudy Vener
salt at panix.com
Thu Mar 9 16:45:23 UTC 2006
Yes. That's what the exec command is for. The new
process replaces the existing parent
process.
--
Rudy Vener
<a href-"http://www.occasionalpoems.com">Custom Poems for All Occasions</a>
On Thu, Mar 09, 2006 at 11:32:52AM -0500, Lee Maschmeyer wrote:
> Hi folks,
>
> Weird as it sounds, that's what I want to do. I have a script that needs to
> reinvoke itself, and I have this part solved. But the caller hangs around
> while the called version executes; if it also calls itself the stack keeps
> getting bigger. Is there a way I can make the caller schedule the callee
> and then terminate so there's no stacking?
>
> And, am I right in thinking there's no way for a script to retrieve the
> entire command line used to invoke it? There's /proc/$$/cmdline but the
> spaces are 0x00 and I can't seem to snag them to turn them back to spaces.
>
> Thanks much for any info,
>
> --
> Lee Maschmeyer
> <lee_maschmeyer at wayne.edu>
>
> "Be kind to your fur-bearing friends,
> For a skunk may be somebody's brother."
> --Fred Allen
>
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
More information about the Blinux-list
mailing list