Re: Function to send command - Unix

1 message Options
Embed this post
Permalink
Vladimir Giszpenc

Re: Function to send command - Unix

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Your question is not very clear.  Are you trying to send a command over SSH?

Are you having trouble using stdout?

Could you redirect to a file and use that?  ls –l /etc/group > /tmp/mylsresults.tmp

How is this related to OVAL?

Vlad

 

------------------------------------------------------------------------------------------------------------------------

I´m using Red Hat Enterprise 5.
I would like to know,
if there is any function in Unix, that I can to send a command and return a String, for example:
command : " ls -l /etc/group "
return: " -rw-r--r-- 1 root root 652 Jan  6  2009 /etc/group "

To unsubscribe, send an email message to [hidden email] with SIGNOFF OVAL-DEVELOPER-LIST in the BODY of the message. If you have difficulties, write to [hidden email].