Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Trouble with system() on SunOS
galevsky
5/16/2007 2:23:00 PM
Hi all,
I am facing trouble with a system call on one of my tool: XmlChecker
* The script
-- test.rb
system "echo 'Here is the tool'"
system "which XmlChecker"
system "echo '$PATH def'"
system "echo $PATH"
system "XmlChecker -V"
* The execution:
[578] XmlChecker -V
v1.9
[579] ruby -W0 test.rb
Here is the tool
/projects/fqdbdatamig/tools/prod/bin//XmlChecker
$PATH def
[...]:/projects/fqdbdatamig/tools/prod/bin/:.
[580]
Note that I ran the script with -W0 to avoid "warning: Insecure world
writable dir /teams/com_fqd_dev/tools, mode 040777" messages.
What is wrong with that ? The system call does not read the $PATH var ?
Why 'echo' ran well ?
Many thanks for your support,
Gal'
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Trouble with system() on SunOS
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password