Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I guess I should be clearer - This line is part of a script that is going to be automatically run on multiple machines that are being deployed to the field - so, this is part of a script that is being put on the machine to be run.
I guess I should be clearer - This line is part of a script that is going to be automatically run on multiple machines that are being deployed to the field - so, this is part of a script that is being put on the machine to be run.
Follow??
It's still not clear, why you're using echo...
What exactly do you want to be written in your $STATSCRIPT file?
In other words, what is the desired output of this line in your script?
OK, I'm not sure that was clearer, but somehow I think I know what you are asking. You don't want the $1, $2, and $3 values appended to $STATSCRIPT, you want to add a command to the end of $STATSCRIPT that when executed will output "$1 $2 $3".
I attempted a whole bunch of ways to escape things, but this is the only thing I could come up with:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.