![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| comands inside the script | mercuryshipzz | Security | 4 | 02-13-2008 04:25 PM |
| while loops | nymus7 | Shell Programming and Scripting | 4 | 03-31-2006 12:59 PM |
| how to identify the type of shell using comands.. | swamymns | Shell Programming and Scripting | 2 | 01-18-2006 01:17 AM |
| External comands in C? | merlin | High Level Programming | 2 | 01-08-2003 01:15 AM |
| loops? | jonas27 | UNIX for Dummies Questions & Answers | 1 | 11-06-2001 03:28 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I am having trouble getting files to ftp over when I run the file names through a loop. If I just do one file it works, but inside of a for loop it does not.
Help! ################section 2 cd /home/salazar/chk_data chmod 777 * ftp -n 161.241.--.-- <<! user anonymous \n ascii for job2 in 3t 11 12 13 14 18 19 25 26 30 37 205 210 215 218 220 225 230 255 260 262 305 310 311 315 320 325 330 331 335 336 337 341 343 345 360 375 380 381 read x do CFNAME="$job2".chk RFNAME="$job2".rem cd ../$job2 put /home/salazar/chk_data/$CFNAME $CFNAME put /home/salazar/chk_data/$RFNAME $RFNAME done read x bye ! |
|
||||
|
Quote:
Hi Perderabo, i am recieving the following error message while executing the above snippet of code. could you advice what should i do to avoid the below error test3: line 25: syntax error near unexpected token `&' test3: line 25: `ftp -nv >&4 2>&4 | &' |
|
|||||
|
Quote:
Cut and paste if you can't get the syntax right. There is no space between the | and the & in my code. You added a space between them. |
![]() |
| Bookmarks |
| Tags |
| sftp script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|