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
exit status of command in a pipe line topcat8 UNIX for Dummies Questions & Answers 10 10-19-2007 05:39 AM
Getting the exit status of a remote command zoonalex Shell Programming and Scripting 1 08-23-2006 05:58 PM
Problem with exit status diganta Shell Programming and Scripting 1 09-28-2005 09:34 AM
Move command return with exit code of 2 handak9 UNIX for Advanced & Expert Users 1 08-26-2004 06:40 AM
Incorrect Exit Status Returned from FTP command - Help?? frustrated1 Shell Programming and Scripting 3 08-22-2003 04:25 AM

Closed Thread
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
  #1 (permalink)  
Old 09-12-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
I still don't understand the question. What's "the user-defined message"? If you mean "will the email contain everything that I would have seen when running this at the prompt" then the answer is hopefully yes already. The shell as such does not tell you anything about errors from commands you run. Any error message from the ssh pipeline should already be in $filename.
  #2 (permalink)  
Old 09-12-2008
visingha visingha is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 20
Thanks Era for the explanation. I will get back to you in case i have any any problem after testing my script.
  #3 (permalink)  
Old 09-12-2008
visingha visingha is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 20
Hello Eeveryone,

when i run the script using ./ the script doesn't give any problem but when i schedule it using cron then while executing the ssh command it gives the following error:

ssh: not found.

Please suggest how can i modify my script to avoid this error.

The username which i am using to schedule to script and the username which i am using while doign ssh is different
  #4 (permalink)  
Old 09-13-2008
visingha visingha is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 20
Problem solved...
Closed Thread

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 11:41 AM.


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