01-14-2015
I do not believe that you can. FTP server for unix is not a shell on the remote server where you can run commands like you can if you are connected to an IBM AS/400.
If you can convert to SFTP using keys to authenticate, then you can also run SSH with those keys to run commands.
Robin
Last edited by rbatte1; 01-14-2015 at 08:11 AM..
Reason: Added SFTP suggestion
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
We have some clients who will place huge files in to one of the remote server.
And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients.
My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
1 Replies
2. Shell Programming and Scripting
Hi there,
I want to write a linux shellscript that checks a specific folder on a specific FTP-server whether there are new files or not. If there are new files I want to download them to a local directory (to gain access for an local application to these files). The problem is that the files I... (3 Replies)
Discussion started by: monstrous
3 Replies
3. Shell Programming and Scripting
Hello,
I used the search engine but could not find the solution I am looking for. Probably its simple but I do not know the solution.
My requirement is I ftp files every day in the morning from the remote server to the local machine. Now if the files are not there at the time I schedule the ftp... (2 Replies)
Discussion started by: kiran_418
2 Replies
4. Shell Programming and Scripting
Hi everybody,
Is there a way to do a stat of files on a ftp server? I have a database which is populated by the contents of these files. I want to setup a crontab to check if there has been an update to these files. If the file has been updated I will download it and then update my database.
... (2 Replies)
Discussion started by: z1dane
2 Replies
5. UNIX for Dummies Questions & Answers
Is possible to see how much available space there is on a ftp server and how much is used through ftp ? how ?
free space:
used space:
thanks (1 Reply)
Discussion started by: aneuryzma
1 Replies
6. Shell Programming and Scripting
Does anybody have anything I can use to help me out with this one? (4 Replies)
Discussion started by: lbone007
4 Replies
7. HP-UX
Hello All,
I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir.
rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed.
Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies
8. UNIX for Advanced & Expert Users
Is there any command to check Memory space of FTP server
using FTP command (3 Replies)
Discussion started by: elango963
3 Replies
9. Red Hat
We have RHEL 5.8 in our environment, I had a query whether we can implement an FTP server using vsftpd package and Linux configurations like setsebool without using any external FTP clients like FileZilla etc. I am very confused on this. The FTP functionalities that should be present are download &... (3 Replies)
Discussion started by: RHCE
3 Replies
10. Solaris
Hi,
I need about 500G space in one corporate solaris server.
However, I am not sure which command to use to check this.
There are few volume groups in the server, and I deleted unused, old volume groups to clear some space.
However, now I am not sure how to check the free space itself.
... (2 Replies)
Discussion started by: anaigini45
2 Replies
LEARN ABOUT MOJAVE
curlopt_quote
CURLOPT_QUOTE(3) curl_easy_setopt options CURLOPT_QUOTE(3)
NAME
CURLOPT_QUOTE - (S)FTP commands to run before transfer
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_QUOTE, struct curl_slist *cmds);
DESCRIPTION
Pass a pointer to a linked list of FTP or SFTP commands to pass to the server prior to your request. This will be done before any other
commands are issued (even before the CWD command for FTP). The linked list should be a fully valid list of 'struct curl_slist' structs
properly filled in with text strings. Use curl_slist_append(3) to append strings (commands) to the list, and clear the entire list after-
wards with curl_slist_free_all(3). Disable this operation again by setting a NULL to this option. When speaking to a FTP server, prefix the
command with an asterisk (*) to make libcurl continue even if the command fails as by default libcurl will stop at first failure.
The set of valid FTP commands depends on the server (see RFC959 for a list of mandatory commands).
The valid SFTP commands are:
chgrp group file
The chgrp command sets the group ID of the file named by the file operand to the group ID specified by the group operand. The
group operand is a decimal integer group ID.
chmod mode file
The chmod command modifies the file mode bits of the specified file. The mode operand is an octal integer mode number.
chown user file
The chown command sets the owner of the file named by the file operand to the user ID specified by the user operand. The user
operand is a decimal integer user ID.
ln source_file target_file
The ln and symlink commands create a symbolic link at the target_file location pointing to the source_file location.
mkdir directory_name
The mkdir command creates the directory named by the directory_name operand.
pwd The pwd command returns the absolute pathname of the current working directory.
rename source target
The rename command renames the file or directory named by the source operand to the destination path named by the target op-
erand.
rm file
The rm command removes the file specified by the file operand.
rmdir directory
The rmdir command removes the directory entry specified by the directory operand, provided it is empty.
statvfs file
The statvfs command returns statistics on the file system in which specified file resides. (Added in 7.49.0)
symlink source_file target_file
See ln.
DEFAULT
NULL
PROTOCOLS
SFTP and FTP
EXAMPLE
TODO
AVAILABILITY
SFTP support added in 7.16.3. *-prefix for SFTP added in 7.24.0
RETURN VALUE
Returns CURLE_OK
SEE ALSO
CURLOPT_POSTQUOTE(3), CURLOPT_PREQUOTE(3),
libcurl 7.54.0 February 25, 2016 CURLOPT_QUOTE(3)