10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
If i use ftp command under if statement it shows the error "Syntax error at line 19 : `<<' is not matched." But if i use ftp command outside if statement, then it is running fine. Can anyone please help me in this.
Code:
#!/bin/sh
echo "\nPress 1 for automated file dumping."
echo... (9 Replies)
Discussion started by: makauser
9 Replies
2. UNIX for Dummies Questions & Answers
Hello,I am trying to put something on the ftp server using the put command. Whenever I try, I get this error:
ftp> put SIMS.war
local: SIMS.war remote: SIMS.war
200 PORT command successful
553 Can't open that file: Permission denied
I have set rwx for all on that file and I still am... (3 Replies)
Discussion started by: mojoman
3 Replies
3. Shell Programming and Scripting
Hello,
i am trying to read one file in which questions are stored and then read the answers from keyboard. Here is what i came up with. But when i run it the contents of whole file gets displayed without taking any input from keyboard. Please help me where i went wrong.
exec<questions... (1 Reply)
Discussion started by: salman4u
1 Replies
4. Shell Programming and Scripting
HI,
I'm downloading one day old files from ftp site.
Below is my script
----------------------------
printf "open $HOST \n" > ftp.cmd
printf "user $USER $PASSWD\n" >> ftp.cmd
printf "bin\n" >> ftp.cmd
#printf "cd /Models/\n" >> ftp.cmd
printf "prompt\n" >> ftp.cmd
printf "for oldfile... (4 Replies)
Discussion started by: shekhar_v4
4 Replies
5. Solaris
Using FTP on Solaris 5.8, I am not able to use the SITE command. It says Invalid command. I am trying to change the permission of the transmitted files to -rw-rw-rw on the destination machine. Any help would be greatly appreciated. (2 Replies)
Discussion started by: gauravsachan
2 Replies
6. Shell Programming and Scripting
Hi everybody !
I writed php code so exec bash shell via php (SMS Send via bash shell) but i have problem as follow :
1. When i exec from linux mode : ./sms.sh --- output is "Messages ... OK". Then all message has been sent.
2. When i exec from PHP site --- return value is "Message ... OK" on... (1 Reply)
Discussion started by: lamthenhan
1 Replies
7. UNIX for Dummies Questions & Answers
I am trying to send email using the "mail" command. I keep getting an "exec failed. errno=2." message.
Here is one the commands I have tried:
mail test@mycompany.com < test1.out
Any ideas what may be causing this error msg? (1 Reply)
Discussion started by: hawkman2k
1 Replies
8. Solaris
Hi,
I need to find/implement an application that FTPs (puts) all new files in a certain directory to an external storage unit. This application should check for new files every 10 seconds (leaving the FTP connection open in between the 10 seconds).
The easiest way would be if there are... (2 Replies)
Discussion started by: KittyJ
2 Replies
9. UNIX for Dummies Questions & Answers
Hi everyone,
can someone please tell me what can be wrong here?
Script:
ftp -v -n $FTPSERVER<< EOP >$LOGFILE 2>&1
user $USERID $PASSWD
ascii
site lrecl=500
site cyl
site PRI=600
site SEC=300
lcd $FTPLOCALDIR
cd $FTPTARGETDIR
put $SOURCEFILE $TARGETFILE
quit
EOP
Output:... (11 Replies)
Discussion started by: swoldering
11 Replies
10. HP-UX
An outside vendor has staged 2 batch files for us and I've tried to retrieve the files using the commands that they've indicated I could use to retrieve one file at a time. I've tried using this command in a shell script after a successful connection to their server:
get "$$ ID=IL096869 BID='PGP... (2 Replies)
Discussion started by: mheinen
2 Replies