By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,388 Members | 1,179 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,388 IT Pros & Developers. It's quick & easy.

Unix script does not execute correctly

P: 123
I'm a little new at Unix Scripting, but I was able to get a program to work, but when I added a new section to it, the new section failed to execute.

The main goal of the script is to copy a directory and then compress using tar and then send via ftp to another unix machine.

Here is the section that fails to execute:

tar cvzf test.tgz $targetdir

echo "What machine would you like to send these files?"

read $name

transferftp test.tbz $name

Any ideas?


Jun 11 '08 #1
Share this Question
Share on Google+
1 Reply

P: 123
figured it out, I had a syntaxs error in a pervious part of the code that caused the program to execute without me knowning and didn't pick up till I was debugging in that area.


Jun 11 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.