![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| comands inside the script | mercuryshipzz | Security | 4 | 02-13-2008 12:25 PM |
| while loops | nymus7 | Shell Programming and Scripting | 4 | 03-31-2006 09:59 AM |
| how to identify the type of shell using comands.. | swamymns | Shell Programming and Scripting | 2 | 01-17-2006 09:17 PM |
| External comands in C? | merlin | High Level Programming | 2 | 01-07-2003 09:15 PM |
| loops? | jonas27 | UNIX for Dummies Questions & Answers | 1 | 11-05-2001 11:28 PM |
|
|
LinkBack | Thread Tools | 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 ! |
| Forum Sponsor | ||
|
|
|
|||
|
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. |
||||
| Google UNIX.COM |