Jump to content

Unix Shell Script .. Help.!


Recommended Posts

  • Replies 38
  • Created
  • Last Reply

Top Posters In This Topic

  • chinni005

    15

  • sigsegv

    6

  • ramafdb

    5

  • Keratam

    5

Posted

em error choopithundhi?

ls $filename dhakaa baagane execute avthundhi

 

as soon as if condition start kagaane invalid command antundhi...

Posted

echo "file exists: "$filename" "

 

replace with 

 

echo "file exists: $filename "

Posted
CODE:
 
ftp -vpd $HOST << END_SCRIPT
ls "$filename"
if[ $? -eq 0 ]; then
echo "file exists: "$filename" "
else
echo "file doesn't exists"
fi
END_SCRIPT
 
ERROR:
 
---> LIST filename.pdf
125 Data connection already open; Transfer starting.
12-29-14  12:15PM               169488 filename.pdf
226 Transfer complete.
?Invalid command
?Invalid command
?Invalid command
?Invalid command
?Invalid command
---> QUIT
221 Goodbye.
Posted

remove quotes for $filename 

 

echo "file exists: $filename "

Posted

andhuke ilanti primitive technologies vadakudadu antaru memu chudandi happy .NET lo enjoy chesthu cheskuntam..e l lo unix ma valla kadhu..

×
×
  • Create New...