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.
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)
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
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?
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.
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.
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?
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:
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.
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
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
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.
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".
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.
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?
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.
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.
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
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?
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.
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?
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.
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)?