The $1 is to take an argument as the command file. So, what I want to do is to take a text file, supposely look like this "test_command1\ntest_command2\ntest_command3...", and pipe those commands thru that script into the program "my_command_line_parser", which would interpret test_command1, followed by test_command2, etc.

I was just wondering what the typical contents of command files are, because the commands will be partially interpretted a second time as arguments to echo. Doing this would prevent the extra interprettation, but might not fix the problem:

You're right. Those error messages seem to have came from the application. Actually I'm trying to run this script on a network router thru telnet. The same script works perfectly when I tried it to another UNIX box. So, I guess the problem must be with the router's telnet server. But I don't know what it is!?

You're right. Those error messages seem to have came from the application. Actually I'm trying to run this script on a network router thru telnet. The same script works perfectly when I tried it to another UNIX box. So, I guess the problem must be with the router's telnet server. But I don't know what it is!?

The $1 is to take an argument as the command file. So, what I want to do is to take a text file, supposely look like this "test_command1\ntest_command2\ntest_command3...", and pipe those commands thru that script into the program "my_command_line_parser", which would interpret test_command1, followed by test_command2, etc.

But yeah, the csh in there looks suspicious because, as I said, it's actually running the commands, and giving the output of each of them to my_command_line_parser. It sounded like you wanted your parser to read in the commands directly, so you may not want the |csh| in there.

Ah, well there's your problem. You can't use telnet this way because it needs stdin connected to a terminal in order to do certain operations. Instead pick up a copy of netcat. You can find it easily by searching for it on google or some such.

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…

Introduction
Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…

Learn several ways to interact with files and get file information from the bash shell.
ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…