Sponsored Content
Top Forums Shell Programming and Scripting rm files after testing for successful scp Post 302731185 by Yoda on Wednesday 14th of November 2012 11:28:04 AM
Old 11-14-2012
After scp you can check if the file was successfully copied by doing:-
Code:
FNAME=$( ssh ${lzuser}@${lzserver} "ls /${lzdir}/${tablename}.del.gz" )
if [ "${FNAME}" = "${tablename}.del.gz" ]
then
      # Copy successful
else
      # Copy failed
fi

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

testing for presence of files in ftp

I have a shell script which GETS a file, but I only want to run this script if $FILE exists on the remote host, don't know correct syntax.....please help ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD bin get $FILE rename export.prn export.prn.$TIMESTAMP !cat... (0 Replies)
Discussion started by: walterja
0 Replies

2. UNIX for Advanced & Expert Users

SCP / SFTP successful but locks out target account

Hi, We have an interesting problem with F-Secure SSH (v 3.1.0) running on HP-UX. It seems that when scp or sftp commands are issued they are successful but it counts as a 'strike' against the target user locking the account out after 3 attempts. When the user is re-enabled in SAM - it reports... (4 Replies)
Discussion started by: b0bbins
4 Replies

3. UNIX for Dummies Questions & Answers

testing if files exist

I am trying to test arguments to see if they are files in any directory. I have : but it's not working (7 Replies)
Discussion started by: skooly5
7 Replies

4. Shell Programming and Scripting

SCP multiple files

Hi , I am doing SCP for copying log files from different server(around 24 server) I need to copy these bulk logfiles every 15 min. How can i do multiple SCP at the same time? My current code is like this scp $CUSTCARE_USER@$CUSTCARE_SERVER:$CUSTCARE_HOME/$CUSTCARE_LOG.*... (2 Replies)
Discussion started by: scorpio
2 Replies

5. Solaris

Testing targets of link files > ln -s

Hi all Ive been given the task to write a script that tests that certain link files work, i.e. the physical directory the link points too, is actually there. Now, before I go down the route of ls -l | awk ...... or using test or find, is there a far more simpler command that I can use ? ... (2 Replies)
Discussion started by: sbk1972
2 Replies

6. Shell Programming and Scripting

For loop scp transfers check if all iterations successful

All, I am using a for loop to SCP a bunch of files in a directory. I am having it then drop a .ready file name. Is there a way to check for the success of all iterations and then email upon fail or success? Example of part of my script: for file in $ORIGLOC/* do ] &&... (2 Replies)
Discussion started by: markdjones82
2 Replies

7. UNIX for Dummies Questions & Answers

scp multiple files

Hi, I'm new to Linux. I would like to know how to scp a group of files. I have the below command, but it asks for remote password while sending each file. Is there a way to send all files (identified by - $ ls | grep '.*hrs0314a.*' | xargs -I {} grep -l '.*35663.*' {}) in one go? $ ls |... (6 Replies)
Discussion started by: don_tom
6 Replies

8. Shell Programming and Scripting

How to check if the merge of two files is successful?

Hi All, I have a requirement to check if the merge of files is successful or not. The script to merge files goes like this, cat Rewards_Header Rewards_Siebel_Notif_temp Rewards_Siebel_Remind105_temp > Rewards_Siebel Sometimes, the file Rewards_Siebel misses records from file... (5 Replies)
Discussion started by: anandek
5 Replies

9. Shell Programming and Scripting

scp files

Need assistance I have ssh keys exchanged between servers for user ZID ssh works without password between ZID . "ssh SERVER A to SERVER B works" I have a property file on SERVER A which is owned by root and I need to transfer the file changing into ZID user and transfer to SERVER B ... (7 Replies)
Discussion started by: ajayram_arya
7 Replies

10. UNIX for Beginners Questions & Answers

Automate splitting of files , scp files as each split completes and combine files on target server

i use the split command to split a one terabyte backup file into 10 chunks of 100 GB each. The files are split one after the other. While the files is being split, I will like to scp the files one after the other as soon as the previous one completes, from server A to Server B. Then on server B ,... (2 Replies)
Discussion started by: malaika
2 Replies
dimbl(1)						      General Commands Manual							  dimbl(1)

NAME
dimbl - Distributed Timbl SYNOPSYS
dimbl [timbl options] [-S <num of threads>] DESCRIPTION
dimbl extends timbl with the possibility to run the classification task on multiple threads. This is done by splitting up the Instancebase in parts that are handled in parallel. Every test instance is tested against each partial Instancebase. The results are merged and then the k Nearest Neighbours are calculated. NOTES
dimbl only works for the IB1 variants of timbl. Not all timbl options are fully supported. Documentation is lacking. OPTIONS
-S <threads> run the server on 'threads' parallel threads. all timbl options are documenented in timbl(1) dimbl handles most of them in the same way as timbl except for -i filename and -I filename -I will create 'threads' Instancebase files and store their names in 'filename' together with the name of the weighting file. -i will use such a file to read back in 'threads' Instancebases for a classifying task. The -S option is ignored in that case. dimbl will use the number of files found in 'filename'. BUGS
possibly AUTHORS
Ko van der Sloot Timbl@uvt.nl Antal van den Bosch Timbl@uvt.nl SEE ALSO
timbl(1) 2010 december 09 dimbl(1)
All times are GMT -4. The time now is 11:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy