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.

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 06-03-2006
nanda77s nanda77s is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 1
need help

Hi i am writing a script, in that i am calling a exe,

That exe required few inputs, and after getting inputs it will show a report, also its refreshes the report when ever there is a change in mkt.

to come out of the exe, we need to type control c ( ctrl c) .

now i need to write a script to capture the report

my script is
*******************

./abc <<con
Nanda

2

con > report.txt
***********
abc is the executable which i am calling from my script,
and "Nanda , enter , 2 " are inputs for the exe.

now i dont know how to come out of the exe thru my script,
cud some one pls help by telling the way to come out the exe thru my script.

i tried ^c , exit, exit(0), exit (1) .. but its not working .

cud some one pls help, thx in advance
  #2 (permalink)  
Old 06-03-2006
arunkumar_mca arunkumar_mca is offline
Registered User
  
 

Join Date: Oct 2004
Posts: 256
Is your EXE is C program ????????
  #3 (permalink)  
Old 06-03-2006
arunkumar_mca arunkumar_mca is offline
Registered User
  
 

Join Date: Oct 2004
Posts: 256
Look as you say that you are executing the EXE when you execute an EXE the control goes to EXE so that is no matter if you include all exit in scripts.You shouls exit from the exe after fininshing the execution.
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 02:54 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