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
help me in sending parameters from sqlplus script to unix shell script Hara Shell Programming and Scripting 2 01-29-2008 03:31 PM
Shell Script: want to insert values in database when update script runs ring Shell Programming and Scripting 1 10-25-2007 04:06 AM
here document to automate perl script that call script hogger84 Shell Programming and Scripting 3 10-22-2007 11:15 AM
returning to the parent shell after invoking a script within a script gurukottur Shell Programming and Scripting 5 09-26-2006 08:05 AM
return valuse from child script to parent script borncrazy Shell Programming and Scripting 1 08-20-2004 04:39 PM

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 12-06-2007
ali560045's Avatar
ali560045 ali560045 is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 328
need help in script

i hav e a script in ksh.

#!/bin/ksh

echo "welcome to the transient script"


ps -aef | grep "pipe" > /temp/file1.txt
uuencode /temp/file1.txt $file1.txt | mail -s "ouptup" mail.me@domain.com << EOM
----------------------------------------------------------------
this script is in directory temp. actually its not able to create a file "file1.txt". i need it to store the values of [ ps -aef | grep "pipe" ].then send it as a attachment to email id

the o/p is

welcome to the transient script
No such file or directory
./trans[6]: /temp/file1.txt: cannot create
/temp/file1.txt: No such file or directory
Null message body; hope that's ok
-----------------------------------------------------------------

plz help me in this

Last edited by ali560045; 12-06-2007 at 08:44 AM..
  #2 (permalink)  
Old 12-06-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,957
Quote:
./trans[6]: /temp/file1.txt: cannot create
that seem to be a permission problem

could you please check that ?


and please remove the email id from the post ( if thats a genuine email id, i hope so )
  #3 (permalink)  
Old 12-06-2007
andryk's Avatar
andryk andryk is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2003
Posts: 448
Quote:
Originally Posted by ali560045 View Post
i hav e a script in ksh.

#!/bin/ksh

echo "welcome to the transient script"


ps -aef | grep "pipe" > /temp/file1.txt
uuencode /temp/file1.txt $file1.txt | mail -s "ouptup" mail.me@domain.com << EOM
----------------------------------------------------------------
this script is in directory temp. actually its not able to create a file "file1.txt". i need it to store the values of [ ps -aef | grep "pipe" ].then send it as a attachment to email id

the o/p is

welcome to the transient script
No such file or directory
./trans[6]: /temp/file1.txt: cannot create
/temp/file1.txt: No such file or directory
Null message body; hope that's ok
-----------------------------------------------------------------

plz help me in this
Perhaps you mean /tmp/file1.txt

Last edited by vino; 12-06-2007 at 08:21 AM..
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 07:44 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