Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: bruns@tetibm2.ee.TU-Berlin.DE (Warner Bruns)
Subject: Re: DEC-UNIX "system" does not work on Linux?
Date: 1997/11/12	[thread overview]
Message-ID: <64cg3d$h5k$1@news.cs.tu-berlin.de> (raw)
In-Reply-To: 64al82$5m5$1@news.cs.tu-berlin.de


In article <64c99q$9tf$1@news.cs.tu-berlin.de>,
bruns@tetibm2.ee.TU-Berlin.DE (Warner Bruns) writes:
> In article <64b8qe$rc7@news2.zippo.com>, lindahl@pbm.com (Greg
Lindahl) writes:
> > bruns@tetibm2.ee.TU-Berlin.DE (Warner Bruns) writes:
> > 
> > >  Everything works fine, the program runs.... except:
> > >  The program wants to start another program with     system("command")
> > >  This does not work.
> > 
> > I have not tried this. Here's how you debug it, though:
> > 
> > strace -f ./program_name
> > 
> > That shows you your system calls and results. The problem ought to be
> > visible...
> > 
> > -- g
> 
>  That was a good advice:
>  The system call that the program wants to execute was:
> system("double.gdfidl -noQ -noroQ .....")
> 
>  In the output of "strace" I identify:
> 
> [pid  3188] access("/usr/bin/sh", X_OK) = -1 ENOENT (No such file or
directory)
> [pid  3188] execve("/sbin/sh", ["sh", "-c", "double.gdfidl -noQ
> -noroQ"...], [/* 80 vars */]) = -1 ENOENT (No such file or directory)
> 
>  On DEC-UNIX, the shells "/usr/bin/sh" and "/sbin/sh" both exist.
>  ON DEC-Linux, the shells both don't exist.
> 
>  I will ask the system administrator to make a link
>  from "/sbin/sh" to the Linux default shell.
> 
>  I will post the outcome.
> 
>  Warner Bruns

 I did not ask the sysadmin to make a link, but edited the executable
 with a hex-editor. I replaced "/sbin/sh" with "/bin/sh" (zero appended).
 Now the program runs.

 Thanks a lot

 Warner Bruns



  parent reply	other threads:[~1997-11-12  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-11  5:00 DEC-UNIX "system" does not work on Linux? Warner Bruns
1997-11-12  5:00 ` Warner Bruns
1997-11-12  5:00 ` Warner Bruns [this message]
1997-11-12  5:00 ` Greg Lindahl
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox