FTP problem with site exec command


 
Thread Tools Search this Thread
Operating Systems SCO FTP problem with site exec command
# 1  
Old 10-19-2014
FTP problem with site exec command

Hello dear Users,
I am for the first time in this forum. I come from Germany. Please excuse my bad englisch. My OS is SCO open Server Release 5.
I have a problem whith FTP and the command "site exec"

if I use the command
Code:
"ftp> site chmod 777 /tmp/startkpf.sc
200 CHMOD command successful

.
it is OK and works

but if I use the command
Code:
 ftp> site exec /tmp/startkpf.sc

I get the following message and nothing is done
Code:
200-startkpf.sc
200  (end of 'startkpf.sc')

I linked the file /tmp/startkpf.sc to /etc/ftp-exec with permissions 777
but it does not work.

I have tryed it with root permissions
but it does not work.

Please help me.

Greeting from Germany to all Users

Peter

Last edited by jim mcnamara; 10-19-2014 at 07:43 PM..
# 2  
Old 10-20-2014
Does what you are attempting to do work in a Linux environment?
# 3  
Old 10-20-2014
no Linux, it is SCO UNIX Open Server Release 5.
# 4  
Old 10-20-2014
Quote:
I linked the file /tmp/startkpf.sc to /etc/ftp-exec with permissions 777
but it does not work.
777 is not the magic sledgehammer to fix all problems. You have made this file world-writable and had better correct that before someone else overwrites it with things you may not like.
# 5  
Old 10-20-2014
Quote:
Originally Posted by Corona688
777 is not the magic sledgehammer to fix all problems. You have made this file world-writable and had better correct that before someone else overwrites it with things you may not like.
The System is not connectet to Internet only in Local Network.
Therfor it is the permission 777 not interesting.
Thanks for yor warning
Greetings Peter
# 6  
Old 10-20-2014
There are more things than invaders which could alter the file. These file permissions were invented for a reason, long before the internet even existed. They are to prevent you from shooting yourself in the foot.

A program glitch could touch it. You might overwrite it by accident yourself, typing in 'put' instead of 'site exec'. Or any of a thousand things we'd never think of because they don't happen to files which aren't set 777.

In all cases, 'permission denied' is what you'd rather the system do, instead of allowing it to be filled with garbage.

777 is not the magic sledgehammer to solve all problems. Like a real sledgehammer, it makes giant holes.
# 7  
Old 10-20-2014
/etc/ftp-exec is a directory not a file. Try putting your file in that directory.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem in using ftp command under if statement

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

FTP put command problem

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

problem using exec command

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

Problem in Downloading one day old files from FTP site

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

SITE command of FTP not working

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

Exec bash shell via PHP Site !

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

Problem with Mail command: exec failed. errno=2.

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

fork and exec ftp

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

Site command used in ftp script

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

Syntax problem with Unix ftp get command

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
Login or Register to Ask a Question