LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-21-2004, 06:19 AM   #1
Johng
Member
 
Registered: Feb 2002
Location: NZ
Distribution: Mageia
Posts: 278

Rep: Reputation: 30
script execution


I am looking for a method to issue a general command in a script to test a DVD compilation in a current directory using xine.

If the current directory is /home/john/video/trial , the command to execute to perform the test would be: xine dvd:/home/john/video/trial/dvd/

If I could save the output of pwd to a string $DVD, I could execute: xine dvd:$DVD/dvd/

Can someone suggest how I can do so, or similar?
 
Old 08-21-2004, 08:50 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You can use:
DVD=`pwd`

Or just:
xine dvd:`pwd`/dvd/

In which case you may just want to use an alias as opposed to a script:
alias dvdtest="xine dvd:\`pwd\`/dvd/"
 
Old 08-21-2004, 04:58 PM   #3
Johng
Member
 
Registered: Feb 2002
Location: NZ
Distribution: Mageia
Posts: 278

Original Poster
Rep: Reputation: 30
Thank you David

That did the trick,

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
script execution on halt linuxhippy Slackware 4 04-01-2005 07:09 PM
script execution error linux_lover2005 Programming 3 12-22-2004 06:46 AM
#! does not seem to work in cgi-bin?? (script execution) servnov Linux - General 6 12-06-2004 07:23 AM
Speeding up Shell Script execution?? funkymunky Programming 8 07-16-2004 08:39 PM
auto execution script nimrod Linux - General 2 12-09-2002 03:20 PM


All times are GMT -5. The time now is 05:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration