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? |
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/" |
Thank you David
That did the trick, Cheers |
All times are GMT -5. The time now is 12:26 AM. |