08-17-2008
What you could do is have a process sitting checking for uploaded files on a regular basis, and as soon as they appear mv them to another unique name or location (subdirectory?) on the destination filesystem.
Once the ftpd has that output file open it should happily continue writing to it even if you rename it while the upload is still running.
The only thing is that the user uploading the file(s) may be confused by the fact that the file they just uploaded is no longer there, but if you give them sufficient warning that shouldn't be a big problem.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hey all,
i am a shell scripting n00b so bear with me. i got a server that every night uploads one file to a remote server. the file is prodserver_date_time.
i would like to make a script, run by root on a daily cron job. i want it to determine if the file was received or not. no md5... (2 Replies)
Discussion started by: jweinraub
2 Replies
2. Shell Programming and Scripting
Hello friends,
I'm newbie in shell scripting...
Until now i have this script:
#!/bin/sh
emailok = email1@domain.com
emailissue = email2@domain.com
limit="50"
df -h | grep -vE '^Filesystem' | awk '{print $1 " " $4 " " $5}'|while read val
do
partition=$(echo $val | awk '{print... (9 Replies)
Discussion started by: john_doe
9 Replies
3. Shell Programming and Scripting
hi,
i want to monitor a particuler folder and have to report is there any new file added to the dir or not? can anyone tell me how to monitor the folder using script. the script has to run in the background continiously. Is there any way to do it? (2 Replies)
Discussion started by: vij_krr
2 Replies
4. Shell Programming and Scripting
Hi everyone!
I'm in a need of a shell script that search for all files in a folder, move all those files to a temp folder, and upload those files via FTP. When the file transfer via FTP completes successfully, the file is moved to a completed folder. In case any of those files fails, the file... (4 Replies)
Discussion started by: pulsorock
4 Replies
5. Shell Programming and Scripting
Hi All,
Is there any way to monitor a command inside shell script ? I have a script inside which I have a tar command which zips around 200GB data.
tar zcvf $Bckp_Dir/$Box-BaseBackup-$Day.tar.gz * --exclude 'dbserver_logs/*' --exclude postmaster.pid --exclude 'pg_xlog/*'
I want to... (3 Replies)
Discussion started by: sussus2326
3 Replies
6. UNIX for Advanced & Expert Users
Hello All,
We are having a archiving script which runs every monday.
When ever the script runs it creates crout* files in /tmp folder.
This file appends till /tmp become 100% full.
We are facing this problem now very frequently.
We caanot delete this files,we have to kill the script.
when we... (5 Replies)
Discussion started by: Upendra Bhushan
5 Replies
7. Shell Programming and Scripting
Hi,
facing an issue while calling sqlplus inside shell script. It for some reason goes to tmp file to write something and i get error as permission denied as i dont have access there.
ANy idea why sqlplus writes in /tmp and how to change or stop this ? (2 Replies)
Discussion started by: rushikeshs
2 Replies
8. Shell Programming and Scripting
Hi,
i need help on shell scripting.
Main intention of the script is
step 1: ssh to remote server
Step 2: cd /tmp in remote server
Step 3: in tmp i want to grep only files and directories which are in GB sizes
All the servers list file is - tmpsrv.txt
vi tmpsrv.txt
... (17 Replies)
Discussion started by: kumar85shiv
17 Replies
9. Homework & Coursework Questions
Hi Experts,
I am not good in writing script. Just stared. I am looking for shell script to check following parameters.
1) Number of files on remote Linux SUSE server.- Any directory and sub directory.
2) I should define number of files in script. Files should be variable.
3) Age of the... (2 Replies)
Discussion started by: ApmPerfMonitor
2 Replies
10. Shell Programming and Scripting
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies