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
epoch time in shell script robsonde SUN Solaris 14 05-12-2009 01:08 PM
Execute a part of shell script only after particular date and time fed.linuxgossip Shell Programming and Scripting 2 06-16-2007 10:04 PM
Help with time comparison shell script for HP-UX gummysweets Shell Programming and Scripting 6 10-12-2005 11:48 AM
Shell script to join a line to the line that follows it shashi_kiran_v Shell Programming and Scripting 6 06-23-2005 03:53 AM
C shell script for time matching Ringo Shell Programming and Scripting 1 08-07-2003 02:26 PM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-02-2007
gvsreddy_539 gvsreddy_539 is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 17
Lightbulb Time out in shell script for a stament/line

Folks,
In shell script, can I mention a timeout for a command execution, afterwhich I want to exit from that particular line and proceed furthur.

I have part of my script as below:
******************************
cd $EXPECT_HOME
expect custom_install.exp mv $QA_HOME/install_run/logs/task*.xml $QA_HOME/install_run/logs/console

.....and so on...

********************************

Problem I am cing is, its hanging at the end of Expect script execution..
I just wanna comeout of that after say 2 mins and proceed.
(Expect time out in expect script doesnt work for me somehow).
So, from shell script, can I handle it somehow?

Thanks for ur time.

--Venkat.
 

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:13 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