Need help creating a script to FTP files to a server and then delete the files that were transfered.
I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? Please be gentle, I'm fairly new to this scripting thing.
#Will move audio files from <Linux> to <Windows>
#Sets the current directory to the audio storage area on the server.
Last edited by methyl; 01-17-2012 at 07:55 PM..
Reason: please use code tags
I have a driectoty called TEMP on server 1.There is a process running on another server which is pushing files in this directory of server 1.
I want to write a script which will move the files from TEMP directory to TEMP2 directory on server 1 only but make sure that it will only copy those files... (2 Replies)
Hi
I just started learning Unix scripts.
I need to access an FTP server, delete all the files except the latest 6 files and the latest 6 files should be downloaded to my local server. Could some body help me to code this logic in KSH ?
Thanks
Athena (1 Reply)
Hi,
I need to ftp some input files from windows to unix server.All the files will be saved in the C drive in my machine.
Currently all these files are transferring manually to the unix server.I need to write a shell script which ftp the files
from windows to unix box.When I searched in the... (10 Replies)
I need help in writng a script to delete last three days files from a remote server using only FTP / SFTP. I was using find command which is not working and i cant use ssh Immediate response is highly appreciated .
Thank in advance!
---------- Post updated 12-05-10 at 09:16 PM ----------... (5 Replies)
Hi Guru's,
I am new to UNIX. my requirement is to log on to FTP server and get all the .txt files. i have developed one script by searching some forums but getting error and not able to fix them. pls see below code.
ftp -i-n<<EOF
open $FTP_HOST... (30 Replies)
suppose one file comes in one sever location on MOnday.we have to write a script to automatically get that files and put it in different server location.
---------- Post updated at 10:28 AM ---------- Previous update was at 10:27 AM ----------
Please help me on this (2 Replies)
Hi experts,
can anyone suggest me on the below:
how to write a shell script to search and delete files on windows server.
-script runs on unix box
-it should search for specific files on windows server and delete them periodically. (2 Replies)
Hi
I am new to Linux / scripting language. I need to improve our Linux servers at work and looking to claim some space my deleting log files/ folders on a 5 day basis.
Can someone help me with creating a script to do so.
Any sample script will be helpful.:b:
Regards (2 Replies)
Discussion started by: sachinksl
2 Replies
LEARN ABOUT PLAN9
ftpfs
FTPFS(4) Kernel Interfaces Manual FTPFS(4)NAME
ftpfs - file transfer protocol (FTP) file system
SYNOPSIS
ftpfs [ -/dq ] [ -m mountpoint ] [ -a password ] system
DESCRIPTION
Ftpfs dials the TCP file transfer protocol (FTP) port, 21, on system and mounts itself (see bind(2)) on mountpoint (default /n/ftp) to pro-
vide access to files on the remote machine. If required by the remote machine, ftpfs will prompt for a user name and password. The user
names ftp and anonymous conventionally offer guest/read-only access to machines. Anonymous FTP may be called without user interaction by
using the -a option and specifying the password.
By default the file seen at the mount point is the user's remote home directory. The option -/ forces the mount point to correspond to the
remote root.
To avoid seeing startup messages from the server use option -q. To see all messages from the server use option -d.
To terminate the connection, unmount (see bind(1)) the mount point.
EXAMPLE
You want anonymous FTP access to the system export.lcs.mit.edu. The first import(4) command is only necessary if your machine does not
have access to the desired system, but another, called gateway in this example, does.
import gateway /net
ftpfs -a yourname@yourmachine export.lcs.mit.edu
SOURCE
/sys/src/cmd/ftpfs
SEE ALSO bind(2)BUGS
Symbolic links on remote Unix systems will always have mode 0777 and a length of 8.
After connecting to a TOPS-20 system, the mount point will contain only one directory, usually /n/ftp/PS:<ANONYMOUS>. However, walking to
any valid directory on that machine will succeed and cause that directory entry to appear under the mount point.
Ftpfs caches files and directories. A directory will fall from the cache after 5 quiescent minutes or if the local user changes the direc-
tory by writing or removing a file. Otherwise, remote changes to the directory that occur after the directory has been cached might not be
immediately visible.
There is no way to issue the appropriate commands to handle special synthetic FTP file types such as directories that automatically return
a tar of their contents.
FTPFS(4)