On Feb 11, 2007, at 10:18 PM, [EMAIL PROTECTED] wrote:
[SNIP]
And, here's the output when using the shell in RB:
Grasshopper:/ andrew$ export XGRID_CONTROLLER_HOSTNAME=localhost
Grasshopper:/ andrew$ cd /Users/andrew/Programming/Projects/Xgrid/
xgtest/work
<sers/andrew/Programming/Projects/Xgrid/xgtest/
worki ng/
Grasshopper:~/Programming/Projects/Xgrid/xgtest/working andrew$
xgrid -job ru
<rojects/Xgrid/xgtest/working andrew$ xgrid -job
run -in ./ ../
working/xgtest
<ng andrew$ xgrid -job run -in ./ ../working/
xgtesta gent
The agent app was ran on Grasshopper
The current working directory is: /private/var/xgrid/agent/tasks/
A25cjZhM/working
Program complete.
Grasshopper:~/Programming/Projects/Xgrid/xgtest/working andrew$
That's because you're running /bin/bash and then using writeline to
send your command. What if you just execute the command directly with:
Dim cmd As String
cmd = "export XGRID_CONTROLLER_HOSTNAME=localhost ; "
cmd = cmd + "cd /Users/andrew/Programming/Projects/Xgrid/xgtest/
working/ ; "
cmd = cmd + "xgrid -job run -in ./ ../working/xgtestagent"
shMyShell.Execute cmd
I've not looked into the issue with the exec'd bash output (I believe
it has something to do with the possibility that bash thinks it no
longer has an attached TTY) since it can be resolved by executing the
command directly. Also, if you exec a long-term interactive command
such as "mail" directly, the output doesn't get mangled like that.
Tim
--
Tim Jones
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>