The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
Changing windows server alias name on windows or unix? NycUnxer UNIX for Dummies Questions & Answers 1 03-26-2008 05:54 PM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 06:24 AM
Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!! haggo Filesystems, Disks and Memory 2 08-23-2006 12:39 PM
Porting of Windows written unix scripts to unix platform tamilselvi UNIX for Advanced & Expert Users 7 10-02-2002 11:55 AM
UNIX problem? Unix programm runs windows 2000 CPU over 100% zerocool UNIX for Dummies Questions & Answers 2 11-06-2001 05:25 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-20-2009
rechever rechever is offline
Registered User
  
 

Join Date: May 2009
Posts: 20
FTP from Windows to UNIX

will this work, knowing that the file is in a directory in windows.. It is
going from a drirectory in windoxs to UNIX \


Code:
# Error Handling Function
function ErrorHandle
{ 
     # if type is 1, then the file does not exist or unreadable
     if [ $type -eq 1 ]
     then
          echo "File "$UpLoadFileName" does not exist or unreadable" >> $LogFile;
          echo "Subject: Error in Running Script\n Error in uploading file script "$ScriptName". File "$UpLoadFileName" does not exist or unreadable" > EmailMessage;
          sendmail -F " File Upload" $EmailAddress < EmailMessage;
          rm EmailMessage;
     fi
     # if type is 2, then the file has zero size
     if [ $type -eq 2 ]
     then
          echo "File "$UpLoadFileName" has a zero size value" >>$LogFile;
          echo " Subject: Error in Running Script\n Error in uploading file script "$ScriptName". File "$UpLoadFileName" has a zero size value" > EmailMessage;
          sendmail -F "The eluppdtop.dat File Upload" $EmailAddress < EmailMessage;
          rm EmailMessage;
     fi


Last edited by zaxxon; 07-20-2009 at 08:49 AM.. Reason: code tags
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0