Bath-Files under linux
How do you create bath files under linux (I mean like .bat files under dos systems)
I need this information for two purposes: 1) To make shortcuts to video files (so that I can set some parameters for the player and freely choose player) This I can probably do with symbolic links or something I supose 2) To transconde multiple videos using ffmpeg comman line input. Also I would like to know how to setup bath file in linux so, that computer doesn't start new task before the first is finished. Still I would like to know the console command to shut down the computer (so that I can setup computer to shut down when the bath file is finished) |
In Linux, the equivalent of a batch file is a shell script. Assuming you're using BASH, I'd suggest you look at this good begginner's guide:
http://www.google.com/url?sa=t&ct=re...-Zqv4XszKAZCPA Quote:
Code:
#shutdown -h now |
Quote:
Quote:
Quote:
echo 1 && sleep 3 && echo sleeped_3 && echo 4 && ls -la Quote:
shutdown -h now or -r to reboot... man shutdown for more info. What your asking for will require you to do some investigation and some trial and error... there are no simple answers. If you have some real examples that you would like help writing a shell script around, there are many of us here who can help. good luck cheers:) |
Sorry, the phrase "bath file" bugs me a lot -- In Win, it's a batch file, & in Linux a bash file.
I suppose a bath file, if it existed, would be one that would run on either system. This can be done, I have, but it's pointless, except as a learning exercise. |
I just had to... can you use bath files to get rid of windows viruses?
|
Thanks for the chuckle.
|
Quote:
|
Thanks for the help
|
All times are GMT -5. The time now is 07:00 AM. |