Korn shell question

Don Russell fedora at drussell.dnsalias.com
Tue Apr 15 19:09:53 UTC 2008


On Tue, Apr 15, 2008 at 11:08 AM, Patrick O'Callaghan <pocallaghan at gmail.com>
wrote:

>
> On Tue, 2008-04-15 at 10:49 -0700, Don Russell wrote:
> > How can I tell, from a Korn shell script, if the script is running in
> > a vi sub-shell?
> >
> > I have a script that has a problem when run from a vi subshell, and
> > I'd like to check for that condition and just issue an error message.
> > (I know that's not the solution to the problem, but the thing that
> > fails is being replaced, so this is a temporary "fix")
>
> Try:
>
> ls -l /proc/`cat /proc/$$/status|grep PPid|cut -f2`/exe
>
> and work from there.


That looks promising... thanks :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20080415/c37bdf9d/attachment-0001.html 


More information about the users mailing list