-
-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Description
How do I turn off stderr. I want to run a command like:
ssh my.corporate.server.com get uptime
I just want the uptime -- I don't want all the bs that goes with logging into a server via ssh. My company likes to stick on ALL it's servers a message of the day -- and this come out in the command when I run it using script.Exec("ssh my.corporate.server.com get uptime").String() The result is
This system is restricted solely to the company authorized users for legitimate
business purposes only. The actual or attempted unauthorized access, use, or
modification of this system is strictly prohibited by the company. Unauthorized users
are subject to Company disciplinary proceedings and/or criminal and civil
penalties under state, federal, or other applicable domestic and foreign laws.
The use of this system may be monitored and recorded for administrative and
security reasons. Anyone accessing this system expressly consents to such
monitoring and is advised that if monitoring reveals possible evidence of
criminal activity, The company may provide the evidence of such activity to law
enforcement officials. All users must comply with the company company policies
regarding the protection of the company information assets.
_________________________________________________________________
20:51:17 up 36 days, 4:25, 1 user, load average: 2.52, 2.29, 2.21```
Metadata
Metadata
Assignees
Labels
No labels