[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: new su behaviour & exit status

Nico Golde <nico@ngolde.de> wrote:
> Hi,
> because of the new su behaviour its no longer possible to 
> get any exit status from a command executed with su -c.
> Does anyone knows a fix for this or have any useful links on 
> how to "workaround" this behaviour?

You could simply use start-stop-daemon instead of su.
           cu andreas
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken.                                (c) Jasper Ffforde

Reply to: