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
scp automated script gholdbhurg UNIX for Advanced & Expert Users 5 10-27-2008 01:23 AM
Automated SFTP script aggar_y Shell Programming and Scripting 6 08-05-2008 02:39 PM
automated sftp script klindel Shell Programming and Scripting 2 05-13-2008 01:45 AM
Need help for automated shell script uneex Shell Programming and Scripting 4 05-01-2008 12:15 PM
help for automated script splax UNIX for Advanced & Expert Users 4 12-26-2006 05:36 PM

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-01-2008
uneex uneex is offline
Registered User
  
 

Join Date: May 2008
Posts: 6
Need automated shell script please

I'm totally new to shell scripting and I would like to ask your help

1.i want to have a .sh script where it runs opening 2 applications one after another

2.i have 2 applications in
/applications/app1
/applications/app2

3. want this script to launch app1 for 20 seconds and get killed and automatically run app2 for another 20 seconds and get killed
. these applications are OpenGL applications.

4. i have a demo tomorrow and i have to automate this by running the apps continously one after another

please IF you can give me the complete syntax of the .sh script for running this..it would be a great help for me...Thank you very much
  #2 (permalink)  
Old 05-01-2008
chappidi_pradee chappidi_pradee is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 11
#!/bin/sh

/applications/app1 &
sleep 20;
kill $!;
/applications/app2 &
sleep 20;
kill $!;


paste this in a script and run this. hope this helps you.
  #3 (permalink)  
Old 05-02-2008
uneex uneex is offline
Registered User
  
 

Join Date: May 2008
Posts: 6
worked like a charm

worked like a charm,,thank you very much pradeep
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 03:26 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