Feature Requests item #705906, was opened at 2003-03-18 16:14
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=359368&aid=705906&group_id=9368
Category: None
Group: None
>Status: Deleted
Resolution: None
Priority: 5
Submitted By: Jeremy Enos (jenos)
Assigned to: Brian Luethke (luethkeb)
Summary: C3 needs option to suppress STDERR
Initial Comment:
It would be really helpful in parsing output from cexec if I
could find a way to suppress the standard error from the
shell spawn. Take the following, for example. I first ran
a command, and had some shell spawn error on one
node. (ignore the error itself, as this is just an example).
I thought I could simply redirect error to /dev/null in the
command, but because the error comes from the shell
spawn, I have no control over it. Note the second
example. So if cexec had a "-nostderr" switch or
something, it would really be helpful.
thx
[EMAIL PROTECTED] gm]# cexec -p /bin/hostname
oscar_cluster node1.ncsa.uiuc.edu:
node1.ncsa.uiuc.edu
oscar_cluster node2.ncsa.uiuc.edu:
node2.ncsa.uiuc.edu
oscar_cluster node3.ncsa.uiuc.edu: switcher:mpi:
Cannot find modulefile for mpich-1.2.4 -- skipping
oscar_cluster node3.ncsa.uiuc.edu:
node3.ncsa.uiuc.edu
[EMAIL PROTECTED] gm]#
[EMAIL PROTECTED] gm]# cexec -p "/bin/hostname
2> /dev/null"
oscar_cluster node1.ncsa.uiuc.edu:
node1.ncsa.uiuc.edu
oscar_cluster node2.ncsa.uiuc.edu:
node2.ncsa.uiuc.edu
oscar_cluster node3.ncsa.uiuc.edu: switcher:mpi:
Cannot find modulefile for mpich-1.2.4 -- skipping
oscar_cluster node3.ncsa.uiuc.edu:
node3.ncsa.uiuc.edu
[EMAIL PROTECTED] gm]#
----------------------------------------------------------------------
>Comment By: Jeremy Enos (jenos)
Date: 2003-03-18 20:00
Message:
Logged In: YES
user_id=270124
Turns out the err was coming before the shell invocation, and
ssh couldn't even prevent it... thus making it impossible for
c3. :(
----------------------------------------------------------------------
Comment By: Thomas Naughton (naughtont)
Date: 2003-03-18 17:49
Message:
Logged In: YES
user_id=288102
i agree that making this a little easier would be good, i.e.
'--nostderr' is a good
idea but you can do this w/ the current tool using single
quotes, instead of
dbl quotes (get parsed by "first" shell).
# cexec -p 'hostname 2> /dev/null'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=359368&aid=705906&group_id=9368
-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink?
You could win a Tablet PC. Get a free Tablet PC hat just for playing.
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Oscar-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-devel