[sles-beta] Runlevel returning incorrect results from within a bash script.

Thorsten Kukuk kukuk at suse.de
Thu Sep 10 15:54:17 MDT 2015


Hi,

On Thu, Sep 10, Craig Salmond wrote:

> Has anyone seen this?
> 
> I am running runlevel from a subprocess of a bash script:
> 
> local tmp=$( /sbin/runlevel )
> echo "${tmp}"
> output from echo:
> N /
> 
> The output should be:
> 
> N 5

After adjusting your code to run standalone, it works correct for me. 
But since your code are only two lines of your shell script 
and never the code to reproduce, the bug is mostlikly in the rest
of your code.

  Thorsten 
-- 
Thorsten Kukuk, Senior Architect SLES & Common Code Base
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)


More information about the sles-beta mailing list