Linux stdout redirection to file contains “@” and stops redirecting

35 pts.
Tags:
Linux
Linux Redirection
Linux Scripts
STDOUT
Hello Experts, I have a tcl/expect script that I am performing "log_user 1" to capture all the output from the script. I am performing the standard redirect and when I perform an exp_send comand with an "@" in the line, my stdout redirection stops. The tcl/expect script continues with no problem - but the output I am looking for is not there:
./expect_script.tcl >> stdout.log 2>> stdout.err
inside the expect script where the stdout redirection stops:
 exp_send -s "no snmp-server community 3x@mp!3 RO 88r
Thanks.
ASKED: July 8, 2009  2:25 PM
UPDATED: July 15, 2009  3:11 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Djeepp
    Try enclosing the whole command (assuming you don't have any variables in the command) in single quotes to prevent the scripting language from trying to expand what it thinks is an array.
    340 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following