![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| perform some checks on file using perl | zedex | Shell Programming and Scripting | 0 | 02-22-2008 03:01 PM |
| need shell script that checks your user id and your permission level | yammer | UNIX for Dummies Questions & Answers | 3 | 11-19-2007 07:17 PM |
| Script that checks for previous instances running | bd_joy | Shell Programming and Scripting | 5 | 06-13-2007 02:23 PM |
| how to make case insensitive checks???? | hitmansilentass | Shell Programming and Scripting | 5 | 04-30-2007 02:23 PM |
| Security checks needed and at what frequency | Far | UNIX for Dummies Questions & Answers | 1 | 02-09-2005 10:31 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Need to apply Checks SSh/SCP
#!/bin/ksh
DATE=$1 if ! [ $DATE ] then echo "Please Enter Date in the Format yyyymmdd" exit 1 fi LoginName="mdu" HostName="nsucu125" SourcePath="/home/users/mdu_ftp/opt/mdu_user/reports/*$DATE.dat.gz" DestinationPath="/home/acttest/adt_mdu_feeds" if ! [ $SourcePath ] then echo "No Files are Present" exit 1 fi if scp $LoginName@$HostName:$SourcePath $DestinationPath then echo "Files Transferred Sucessfully" else echo "Failed To Transfer $?" fi These are the some checks I have applied I need some more checks to this script and also I need this script to be extened with some more meaningful things added into it. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|