10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to delete old file in ftp server, after transferring new file successfully .
but here i am checking both the file available or not using ls command.
if both the file available means i need to get file_new and file_old file size as greater than zero.
but i am getting only for... (3 Replies)
Discussion started by: elango963
2. Shell Programming and Scripting
This is my code:
nb_lignes=`wc -l $1 | cut -d " " -f1`
for i in $(seq $(($nb_lignes - 1)) )
machine=`head $1 -n $i | tail -1`
machine1=`head $1 -n $nb_lignes | tail -1`
ssh root@$machine -x " scp /home/file.txt root@$machine1:/home && rm -r /home/file.txt"
... (2 Replies)
Discussion started by: chercheur857
3. Shell Programming and Scripting
Thanks in Advance
I wrote the following code
echo "version is 1.1"
for i in "subscriber promplan mapping dedicatedaccount faflistSub faflistAcc accumulator pam_account"
... (5 Replies)
Discussion started by: aealexanderraj
4. Shell Programming and Scripting
I'm trying to upload a file to this ftp server and others ftp://ftp.byethost12.com as you can see in the output of CURL using the -v option
curl reports that the upload succeeded but when i connected to the server with file-zilla there is no file uploaded the same command
upload files... (5 Replies)
Discussion started by: laraaj
5. Shell Programming and Scripting
I have a file like this 07200900.SUP,in a windows directory I need to FTP this file to UNIX , the directory in unix is N:\orgs\Financial Aid\MIIS\0910\FTP
I am getting this error
miis_ftp.ELM_SUP.shl: =cd orgs/"Financial Aid"/"MIIS"/"0910"/"FTP" : not found
IN THE LOG FILE
Activities for Mon... (3 Replies)
Discussion started by: rechever
6. Shell Programming and Scripting
Another problem, here is my code
while : ; do
ls -1rt $dir/*.csv > /dev/null 2>&1
cp $datadir/weekly.txt $dir/weekly.csv
done (10 Replies)
Discussion started by: tententen
7. UNIX for Dummies Questions & Answers
Can anyone help me with the while loop in expect script. Following is my scenario:
1. one of my process is running and looking for a file
2. as soon as the file is dropped the proces then processes the file and creates a control file ".ctl" to indicate end of process for that file
... (5 Replies)
Discussion started by: skal5
8. UNIX for Dummies Questions & Answers
I need a script that will check for the existence of new files that FTP'd in the morning, results go to log file. The 2nd step is to compare the new file with the previous days file. If the new file size is 30% or more smaller in size then previous day this needs to also be sent to log.
This... (1 Reply)
Discussion started by: rbknisely
9. UNIX for Dummies Questions & Answers
I have a question for you all. I am working at a company and we are trying to recover .dat files which were created on an older linux box and we have a folder of .dat files that are unreadable. When you try to open them in a text editor you get jibberish all shapes and sizes and... (19 Replies)
Discussion started by: ryangfm
10. Shell Programming and Scripting
I have a shell script that runs all the time looking for a certain type of file and then it processes the file through a series of other scripts. The script is watching a directory that has files uploaded to it via SFTP. It already checks the size of the file to make sure that it is not still... (3 Replies)
Discussion started by: heprox