General :: Batch File Conversion Command?

Sep 30, 2010

I just learnt to convert a video file into mp4 format so I can watch it on my PS3. However, I have dozens of video files from my video cam, and want to convert them all. They are all in the same folder. Please can someone explain how I might be able to adapt the code below so I can convert all my files in a batch. Perhaps keeping their same name or giving them some other name, I don't mind.

View 6 Replies


ADVERTISEMENT

Ubuntu :: Image Batch Conversion For Publishing?

May 27, 2011

I have a LaTeX document in one folder, and the images that this documents includes via

Code:
includegraphics{filename}

are in subfolders of this directory. Sometimes I compile this LaTeX file using PDFLaTeX, and others using plain LaTeX. Thus, I would like to have my images in PDF and EPS format, along with its original source, normally an SVG file created with Inkscape. I know I can use Inkscape to convert these files to these formats, but when there are 50 images, it becomes cumbersome/boring/APITA.

I have a small Makefile that reads gnuplot scripts and generates EPS files

Code:
# Makefile to convert into Encapsulated Postscript
# the plots made with GNU Plot. (.plt files)
.PHONY=eps,clean
PLOTS=$(shell ls *.plt 2> /dev/null)

[Code].....

View 2 Replies View Related

Ubuntu :: Shift Command In Little Batch File?

Feb 11, 2010

I want to be able to enter multiple filenames after this bash file on the command line--- file1.rm, file2.rm by putting a shift command in this file?Or even better, for this bash file to take a line by line pipe from a text file. Excuse my atechnicalness.

file: rm2avi.sh:
#!/bin/bash
cd /media/212EXT/data/download/convert

[code]....

View 9 Replies View Related

General :: Prevent Special Users To Run Batch Command?

Aug 6, 2011

What is the best way to prevent some user run some command? For example every body can run at and batch command and 3 or 4 special users prevent run these command?

View 7 Replies View Related

General :: Batch User Creating With 'newusers' Command Question

Jul 26, 2011

I recently used the newusers command to generate several user accounts from a text file. That process seemed to go well until I tried to su into one of the new accounts.

This behavior appears for all the accounts that were created from the text file and the newusers command. It seems that several configuration files that should have been autogenerated for these new users were never created. I was able to confirm this was the problem by copying .bashrc and .bash_profile from a user that was created with the "useradd" command into the /home/newaccount directory. After logging off and logging into the newaccount again, the issue is corrected.For the record, I just read this forum post and I'm looking for an alternative to this. If this is the most efficient way to accomplish my goal, then I'll try the route mentioned in the thread. I'm still open to alternatives.

View 1 Replies View Related

General :: Convert Batch File Into A .sh File Will Not Work

Sep 16, 2010

I am trying to convert my batch file into a .sh file and i think i have it perfect but it just will not work, so obviously not perfect. This is the code for my batch file.

[Code]....

This works perfectly on my own computer without any problems. I want to host this on my Linux VPS (CentOS 5) and need it to be converted into run.sh. This is the code for my run.sh.

[Code]....

View 9 Replies View Related

General :: Bulk Music File Format Conversion (OGG)

Apr 4, 2010

I have thousands of audio files in all sorts of formats. Whenever I install a distro this means that I always have to download a ton of different audio stuff as well (and I really don't understand linux audio). Typically this means gstreamer good, bad and ugly, xine, GNOME Mplayer and god knows what else. If I could change the formats of all files into a simple FOSS format I would. Is there a program that can detect current formats and do a bulk convert, into ogg maybe?

View 9 Replies View Related

General :: Execute Commands Over SSH In A Batch File?

Feb 17, 2011

I'm looking to, all in the course of one batch file:

ssh into a remote computer execute commands (per the batch file) on the remote host.

What options do I need to add to the ssh invocation so that the batch file executes the lines following the ssh invocation over the connection?

e.g., with sftp it's simply adding a -b /dev/stdin and then << EOF at the end; how do I do this with SSH?

View 1 Replies View Related

General :: Batch File To Login To Putty?

Feb 2, 2011

I've created a .bat file with this line: start C:USERSPuttyputty.exe -ssh user@server.com -pw password

That opens a putty session and logged in it with the user and password i've already specified. But now, I want to enter a simple command like "ls -l" for example.. How can I do that?

I've also tried plink...The line in that case is this one:

start C:USERSPuttyplink.exe -v -ssh user@server.com -pw password -m UNIX_commands.txt

and in that file "UNIX_commands.txt" I've added the following lines:

cd /projects/test
ls -l

all works fine (the commands are executed) but i can't see the putty session... all i can see is the verbose in my DOS windows of the last line "ls -l"...

The putty session vanishes away. How can I have the session opened and list the mentioned directory.

View 1 Replies View Related

General :: Need To Convert Batch File To Shell Script

May 3, 2010

Kindly help me converting a batch file with following commands into shell script..I would like to have the same functionality with shell commands.

View 2 Replies View Related

General :: Conversion Of .o File To .ko File?

Mar 7, 2010

I have already existing some .o files which now I want to convert it into .ko file so that I can load that module in 2.6 kernel (FC7) How can I make this conversion

View 1 Replies View Related

General :: Use Script To Batch Change File Names In Folder

Nov 9, 2009

I would like to change file names in two ways

1)
1.jpg -> 0001.jpg
2.jpg -> 0002.jpg
...
x.jpg -> 000x.jpg
...
xy.jpg -> 00xy.jpg

2)
5201.jpg -> 5001.jpg
5202.jpg -> 5002.jpg
...
5xyz.jpg -> 5(x-2)yz.jpg (where x >= 2)

View 3 Replies View Related

Programming :: Wget Command Appropriate For Batch?

Jun 19, 2011

I have written the batch file which will go to the website, wait for input (download button/exit), move to the next algorithym and repeat. My problem is getting the batch file to click the stupid download button. Can I use wget, and can you show me how to use it or point me to a really good api?

Code:
@ECHO OFF
ECHO INSTALLING ADOBE FLASH PLAYER PLUGIN UPDATE

[code]....

View 6 Replies View Related

Software :: Quick Numeric Conversion On The Command Line?

Jul 20, 2011

What is the quickest way, from the command line, to convert:Ip address --> Binary --> Base64I've been using an online calculator to do this, but I have need to script it now, so having it in a single command would be great.

View 2 Replies View Related

Ubuntu :: Using GIMP Command To Process Batch?

Dec 24, 2010

I don't know if it's possible but GIMP is able to receive command line arguments, so why not? Basically, I want to create a batch (action, macro or what it may be called) and then set up a cron job which will run every hour. So, it would be something like "If an image is in X folder, then resize, watermark & move it to Y folder".

View 2 Replies View Related

Ubuntu Servers :: Send Email From Command Line / Batch Script

Jul 1, 2011

Is there a way to send an email from a batch script. I want to send the output from a script to an email address, possibly a couple of email addresses depending on the output.

View 3 Replies View Related

Ubuntu :: Run A .batch File?

Jul 31, 2010

I am trying to run a .batch file, I was wondering if this edit would make it work, this is a java application-loader.

Code:
#bin/bash
java -Xmx500m -cp .;Theme.jar Gui 0 1 lowmem members 32
pause

View 2 Replies View Related

Ubuntu :: How To Make A Batch File

Feb 16, 2010

I want to quickly get to the Root directly (or whatever it's called).This is how I do it now; (the text in bold is what the computer spits out)

me@me-desktop:~$ sudo -s
[sudo] password for me: (then I enter my password)
root@me -desktop:~#

I'd like to just type one the new of the batch file and then hit enter. The batch file would then do the rest.

View 9 Replies View Related

Ubuntu :: Create A Batch File To Run At Startup?

Apr 9, 2010

I am use to microsoft products. In microsoft windows, I can make a batch file that says to delete a file on the desktop during startup. would like to create a "batch file" or command that runs at logon in Ubuntu. An example:f I wanted to delete a certain file on the desktop called "new.pdf" everytime I logon,Could I make some kind of file the has the commands "rm new.pdf" in it and run it as a file during login?

View 5 Replies View Related

Software :: Launch A Batch File With Screen?

Jun 27, 2011

I understand SOME of how to use screen; attaching and detaching screens, etc.

for example:
screen -d -m links cnn.com

Then I can type
screen -ls
or
screen -r
and re-attach to that session.

But what launching a batch file? Said batch file contains 2 commands; a CD command, and a command to launch Python to run a certain Python script.

Whenever I use the batch file as the command for Screen, it always exits and terminates the screen session -- there are always "0 sockets". Even though the Python script in question is very persistent, and runs indefinitely.

View 8 Replies View Related

Ubuntu Multimedia :: Conversion Of Audio File With 2.1 Channel Output To 5.1

Oct 29, 2010

Is it possible to convert a 2.1 channel mp3 or any video file to get a respective 5.1 file permanently so I could play them on external music system which is 5.1 speaker system. Any sites where i can usually songs n video with 5.1 channel.

View 2 Replies View Related

Programming :: Batch File To Run Unix Commands From Windows?

Nov 22, 2010

I need to write a windows batch file to run unix commands by logging onto a telnet unix server. For example , I might want the batch file to log onto the unix sever, run the ls command, collect the output in a file and ftp it back to my windows desktop

View 8 Replies View Related

Ubuntu :: Adding Multiple Users Using Batch File?

Oct 26, 2010

Idealy I want to create a batch file which would read the list and create a user and a password.

I know i need to create the file using the vi command and using the useradd facility to add the users however where i go from there i am lost.

View 5 Replies View Related

Ubuntu Multimedia :: Audio File Conversion From Rhythmbox To Milestone (Droid)?

Mar 27, 2010

I'm using Rhythmbox to manage my music collection. I have ripped my CDs into FLAC files. I'm using the Motorola Milestone (The Droid) as my music player and syncing it using Rhythmbox.

Now, when I transfer my music files from Rhythmbox to the Milestone, it automatically convert the FLAC files to MP3. But the conversion is set to 128Kps.

How do I change this default conversion rate? Or even, how do I change to another conversion format altogether?

View 1 Replies View Related

Programming :: Print The Current Time Of My System With A Batch File ?

Dec 25, 2010

How can I print the current time of my system with a batch file. My os is ubuntu.

View 4 Replies View Related

Ubuntu Multimedia :: Audio Formats: Identification - Conversion - Figure Out What Format A File Is In?

Apr 12, 2010

I think that the biggest problem that I have had is that some of the music (and audio books) that I have gotten have not played on my walkman, or have not been able to be downloaded in to I-tunes.

First: I hate itunes... I only try to make it work because I love my wife. (and do not want her to hit me)

Second: I know that my Walkman has a very limited range of files that it can play, so I will need to convert some types of files.

But my basic questions:

* How can I figure out what format a file is in?
* Below that, how can I identify the singular characteristics of a file? (bit rate, and other formats...)
* Is there a best way to switch the formats or format options of these files. (I am currently using sox to do this, it seems to very complete)

Basically. I know nothing! The most that I do not know is that two files that as far as I can tell have the same formats, and should work the same never the less, one of them works, the other does not. I am looking to figure out a way to look at these files (maybe they are mislabeled) and figure out what their real format is (and a more complete format than just being MP3 or such) and then to be able to convert it in to a format that is able to be used by myself and/or my wife.

View 1 Replies View Related

General :: Append Command Output To File By Giving Command In Terminal?

Jul 3, 2009

I am using openSUSE 10.3.When I install software from tarball then to record time required I send output of date to beg.txt(when installation begins) and end.txt (when installation finishes).How can I append output of date to a file so I don't need two files?

View 4 Replies View Related

Programming :: Write A Batch File For Windows That Starts Cygwin Tool And Runs Unix Scripts?

Nov 17, 2008

I need to write a batch file for windows that automatically starts the cygwin tool in windows and executes the unix scripts.Previously we had these scripts in unix server.Now we need to migrate them to Windows server.For this reason we are using cygwin tool that allows the scripts to be executed on Windows server.We had written a batch file that starts the cygwin tool,but we were not able to execute the unix scripts.How can we write a batch file such that it executes all the unix scripts in cygwin.

View 5 Replies View Related

General :: Convert An HTML Email Saved As A Text File To A PDF File From The Command Line?

Aug 23, 2011

I need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.

Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?

View 1 Replies View Related

General :: Retrieve The File Which Got Removed From File System Using Rm Command?

Nov 23, 2010

As in windows all the delted items will got to RecycleBin is there any such thing in linux.

(Or)

Can we retrive the file which got removed from file system(using rm command)

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved