The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Questions on shell execution stevefox Shell Programming and Scripting 6 11-20-2007 04:06 AM
Sequential execution in shell script? chengwei UNIX for Dummies Questions & Answers 6 03-30-2007 12:10 AM
Scheduling the execution of a shell script sumesh.abraham Shell Programming and Scripting 1 12-06-2006 07:25 AM
Logging OWB mapping execution in Shell script npn Shell Programming and Scripting 1 11-16-2006 09:25 AM
execution of shell script malaymaru Shell Programming and Scripting 5 06-13-2005 09:49 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-08-2008
anju anju is offline
Registered User
  
 

Join Date: Jan 2008
Location: Bangalore
Posts: 17
Unhappy problem with shell script execution

Hi All,

i am running a shell script in which there is a command

`ps -ef | grep smon > db`

When i execute this command in the command prompt i am getting the desired output..but when the script is executed..the db file is getting created but with no values...I could not find the reason for it. Please help. This is really urgent .

Thanks in Advance
Anju
  #2 (permalink)  
Old 05-08-2008
namishtiwari namishtiwari is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2007
Location: Bangalore
Posts: 377
Quote:
Originally Posted by anju View Post
Hi All,

i am running a shell script in which there is a command

`ps -ef | grep smon > db`

When i execute this command in the command prompt i am getting the desired output..but when the script is executed..the db file is getting created but with no values...I could not find the reason for it. Please help. This is really urgent .

Thanks in Advance
Anju
Are you trying to store this somewhere why are you using backticks there.
just remove backticks and try. if you are storing it in a variable then just remove the redirection part.
  #3 (permalink)  
Old 05-08-2008
james1589 james1589 is offline
Registered User
  
 

Join Date: May 2008
Posts: 4
Thumbs down problem with shell script execution

Try this..

ps -ef|grep "smon" >db or ps -ef|grep smon >db
Sponsored Links
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 01:18 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