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
list the file created before 24 hours using ls command jayaramanit Shell Programming and Scripting 7 09-11-2007 09:46 AM
command to list files that are created before some date csreenivas SUN Solaris 3 06-27-2007 07:34 PM
Determine date and time the file was created through shell scripts BharatSurana Shell Programming and Scripting 1 01-11-2006 01:06 PM
I want to get the file which created the error when the find command was run guhas Shell Programming and Scripting 1 10-21-2005 04:06 PM
command unix to list all files created since n month ago yacsil Shell Programming and Scripting 8 12-15-2003 01:12 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 08-29-2008
sushantnirwan sushantnirwan is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 8
Run a command on new created shell

Hi
I am using a command "script" to capture the output of a command
my script is

#/bin/sh
script filename.txt
./execute_some_script.sh
exit
exit

Now my problem is that when my script run "script filename.txt" its fork a new shell and after the no other command execute
The remaining command executes after I type exit on the terminal

So help me , so that this script execute the "./execute_some_script.sh" after run script "filename.txt" and exit also.
  #2 (permalink)  
Old 08-29-2008
aigles's Avatar
aigles aigles is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,423
Try:
Code:
#/bin/sh
script -c "./execute_some_script.sh" filename.txt
exit
Jean-Pierre.
  #3 (permalink)  
Old 08-29-2008
sushantnirwan sushantnirwan is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 8
Sorry I forget to mention that i want to run this thing on solaris machine
and there is no -c option in script. The script has only -a option
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 10:28 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