Ubuntu Need help tweaking a Script

2013-10-04  Source: Original Site  Category:Ubuntu  Views:0 


Ok, so I have this script that works ok for converting vid's to a nice format & size for my Droid. But it will only do 1 file at a time, and isn't very flexible.

What I would really like is someone who is good at scripting to take a look at it, and rework it so that I can do this:

DroidEncTest.sh /inputDir/* *.mp4

That way I can drop all my vids into 1 directory, and convert them as a batch. Or even set this up as a cron command so that it will check my default dir nightly & convert.

The output dir will be 'hard coded' into the script. actually, it is. If you want, you can hard code the input dir too. I'm ok with that.

Anyway, ANY help is appreciated. Right now I'm having to manually run this script for each file, and that's kinda a pain.

Related articles
  • Ubuntu Need help tweaking a Script 2013-10-04

    Ok, so I have this script that works ok for converting vid's to a nice format & size for my Droid. But it will only do 1 file at a time, and isn't very flexible. What I would really like is someone who is good at scripting to take a look at it, a

  • Ubuntu Need help with shell script. For loop w/multiple file types. 2012-01-28

    I am needing help with shell scripting. I have searched the net but have not found exactly what I am looking for. I am wanting to write a shell script with a for loop with mutiple file types. In windows would go about it like this. for %%a in ("*.avi

  • Ubuntu need help writing a script 2012-02-26

    i had a manual install of tomcat6 and i need help mking a script which stops,starts ,restarts and checks status of tomcat. i managed to make simple script to start and stop tomcat but have difficulty in the latter two. can someone help ?

  • Ubuntu need help with startup script 2014-11-14

    I need some help with startup script. I have a problem with an error on system boot: hub 2-0:1.0:unable to enumerate usb device on port 5 This error is continuous, filling up my system logs. It is also a known kernel bug. I found a solution here: htt

  • Ubuntu need help w/ awk scripting 2012-09-25

    hi, i need help with an awk script that takes files older than ten days and compresses them. here is what i have so far. i don't understand how to do all of this on one line. i would also really appreciate a good link to a page that deals with beginn

  • Ubuntu Need Help With Bash Script to run Paint Shop Pro 9 2013-12-28

    Been trying to figure this out for the past 4 hours...Grrr.... I know the Paint Shop Pro 9 is old, but in my opinion it is still better than GIMP for enhancing photos. The program runs fine, I just need help creating a temp dir based on pid, First Th

  • Ubuntu Need help with my scripts 2015-02-20

    Can someone please help me here: I am a total newbie to Shell Scripting and need help with my assignment and I am currently at a total loss. Here is what I am asked to do: Create a shell script that does the following: Takes one optional argument whi

  • Ubuntu Needing help with BASH script yet again. 2015-05-18

    ok, so I am writing a bash script that will need to be run by a friend from far away, so i need to have the script working correctly on a computer that I can't test it on, and it needs to work there the first time. Here is the deal: There are some fi

  • Ubuntu Need Help: Built A Script to Manage An Application 2014-05-06

    I need that kind of script for a few different application i would use teamspeak server as example... i would like to be able to ave a launch script with different option. Im french so start will be start "d" stop "s" restart "r"and quit "q" #!/bin/s

  • Ubuntu Need help creating a script to load Flatout 2 2014-06-03

    Hello, for days i have been try to get a working launcher for the racing game FlatOut 2. I have tried almost every thing and it always comes up with a error ether the .EXE didn't load its main files from the games folder or it doesn't work at all and

  • Ubuntu Need help tweaking xwindows/gui/video driver settings 2012-05-22

    I have managed to install ubuntu on an old G3 powermac. It seems to be working great EXCEPT that xwindows does not work. I get the error message, "H. V frequency over range" working on the commandline, how do I adjust the settings that control this?

  • Ubuntu Need help with a script to extract numbers from a grep stream 2012-09-12

    I need to pass the PID number to a kill command using a simple shell script. Here's what I need to do in easy steps: 1. Get the PID # of the process, the closest I can get is with: screen -list | grep Detthis gives the following output: 19729.omnibot

  • Ubuntu Need help with network scripting 2012-11-01

    I have a dreaded Broadcom 54g wireless card (bcm43xx) and after weeks of forum trawling, I have managed to get the driver working: 6.06 LTS amd64 using in-built bcm43xx driver and wl_apsta.o firmware from bcm43xx team as recommended by wiki (not ndis

  • Ubuntu need help with bash script to generate nfo files 2012-12-11

    I'm trying to write a simple bash script which will generate a text .nfo file from the file names in a directory. Its for my music video library in xbmc. Basically I have a bunch of music videos which are named : "Artist - Song.avi" I need to create

  • Ubuntu need help with shell script (very basic) 2013-02-09

    guys i need to make a shell script for a class of mine. here are the requirements: make a script called lslw, that is executed as ./lslw op, where op is either -w or -l. if op is -l, then the script should output the names of all the files in the cur

  • Ubuntu Need help creating a script 2013-04-12

    I have a ubuntu box that both runs mythtv, asterisk, and freepbx on it. From time to time if I need to reboot the box, I am having an issue with asterisk loading my configured trunks for some reason. I usually end up logging into asterisk CLI and run

  • Ubuntu Need help with backup script. 2013-12-22

    I am running a Dell PowerEdge 2950 with VMWare ESXi 3.5. I have 4 virtual machines set up. Three of the VMs are running Ubuntu, the other is running Red Hat 9 and has the tape drive installed to it. I have NFS shares setup and sharing the content of

  • Ubuntu Need help in Shell script 2014-04-09

    I am a newbie to shell scripting. Recently I downloaded a programming tutorial from the internet as an ISO image and when I mounted it I found that all the files had their extensions suffixed with ";1" because of which the programs to run them couldn

  • Ubuntu Need help making python script desktop launcher 2014-07-14

    i have a python script which uploads 2 picasaweb albums, n i need 2 make a launcher on the panel so that i can drag and drop pictures on it n they should be upload to picasa via the script. but 4 some reason the launcher wont work, the python script(

  • Ubuntu need help: unmounting volume scripts 2014-10-29

    Hi I need some help here. I have 2 volumes I would like to have automatically unmount upon login. I need root permissions to unmount them so I just cant simply unmount them i have to go thru terminal. Can anyone tell me how to write a script or simpl