Register
It is currently Tue Nov 25, 2014 2:43 pm

Execute a program in another folder and then return


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Sat Apr 05, 2008 10:01 pm   

Joined: Sat Apr 05, 2008 9:37 pm
Posts: 1
Location: Dallas, TX
I know this is a really simple script, but it's one I use over and over. I'm interested in suggestions and feedback. Thanks.

Code:
#!/bin/bash
## In Folder script by Joshua Kersey
## http://www.forwardyouth.com/ubuntu
pushd "$1"
"$2"
popd


Top
 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot], TurnitinBot [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP