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:
usage(){
tar cvzf test.tgz $targetdir
echo "What machine would you like to send these files?"
read $name
transferftp test.tbz $name
}
Any ideas?
Thanks,
Newbie19
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:
usage(){
tar cvzf test.tgz $targetdir
echo "What machine would you like to send these files?"
read $name
transferftp test.tbz $name
}
Any ideas?
Thanks,
Newbie19
Comment