Page 1 of 1

executing shell script for de/remuxing

Posted: Fri Mar 14, 2008 6:21 am
by dungbeetle
Hi Guys, I am trying to archive some .pes files from my Thompson dvr4000 onto my hard drive and would like to convert them to mpeg2 so they can be easily edited. I have an app to extract them (in Windows unfortunately but it seems to work well) but I am having probs with the muxing as the various tools I have tried have always come back with errors. I found a shell script that I would like to try that should do the job here:

http://www.digitalspy.co.uk/forums/show ... p?t=659595

I haven't run a shell script before and I can't seem to get the command right. I named the script drmux.sh and tried

Code: Select all

mike@acer7520:~$ sudo chmod +x /mike/drmux.sh
[sudo] password for mike:
chmod: cannot access `/mike/drmux.sh': No such file or directory
mike@acer7520:~$ 
I think I am doing something stupid, so 3 questions:
1. Which directory should I place the script in?
2. How do I make sure that the terminal is opened in the correct directory?
3. Can you see what else I might be doing wrong?

Thanks guys,
Mike

Re: executing shell script for de/remuxing

Posted: Fri Mar 14, 2008 7:26 am
by Husse
The error is easily spotted
mike@acer7520:~$ sudo chmod +x /mike/drmux.sh
/mike means a directory in root just like /home or /etc....
If drmux.sh is in your home you should do sudo chmod +x drmux.sh
You see where the terminal is opened directly before the $ and ~ means /home/your_user_name
This is where the terminal opens when invoked from the menu
Anything you want to use to manipulate things the way you want here should preferably be in home

Re: executing shell script for de/remuxing

Posted: Fri Mar 14, 2008 8:22 am
by dungbeetle
Thanks Husse, the terminal is now accepting the command. How do I actually get the script to execute?

Re: executing shell script for de/remuxing

Posted: Sat Mar 15, 2008 3:32 pm
by Husse
./drmux.sh in a terminal
or is it /.drmux.sh....
For some reason this has not stuck in my memory

Re: executing shell script for de/remuxing

Posted: Sun Mar 16, 2008 6:43 am
by dungbeetle
Thanks Husse, ./ seems to work. Hopefully, I will remember by noting the keys are in that order on the keyboard, and right next to each other. :mrgreen:

Just need to adapt the script to work on my set up now......

Cheers, Mike