Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 08-21-2004, 07:19 AM   #1
Registered: Feb 2002
Location: NZ
Distribution: Mageia
Posts: 315

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, 09:50 AM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You can use:

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, 05:58 PM   #3
Registered: Feb 2002
Location: NZ
Distribution: Mageia
Posts: 315

Original Poster
Rep: Reputation: 30
Thank you David

That did the trick,



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 08:09 PM
script execution error linux_lover2005 Programming 3 12-22-2004 07:46 AM
#! does not seem to work in cgi-bin?? (script execution) servnov Linux - General 6 12-06-2004 08:23 AM
Speeding up Shell Script execution?? funkymunky Programming 8 07-16-2004 09:39 PM
auto execution script nimrod Linux - General 2 12-09-2002 04:20 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:17 PM.

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