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
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 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".
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
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.
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 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 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 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?
In order to make this conversion I have to use a text editor. This is tedious. Is there an easier way to do it, like some program I can run from the Linux or OSX terminal?
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 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.
In the kde realm, with the dolphin file browser, I can open a terminal in whatever folder is in the gui by using the shift and f4 keys. I'd like to be able to accomplish the same in gnome with the nautilus file browser but can't figure out how to do same. So far I have to open a terminal and then cd to the desired folder. Or do I have to use some other file browser and which one?
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 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 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 have just dual booted ubuntu 10.04 onto my computer with windows 7 and so far i cannot get my shift key to work on my 64-bit computer. all my other keys work except for that key. could someone please tell me how to fix this little problem.
dell 1545 laptop. when shift is held the system doesn't register the input, ie no caps or symbols, but it does work for compiz shortcuts. capslock works for letters but not symbols.
When I open the nautilus and press shift+down key i cannot select icons. Similarly, if i open some text editor (gedit) if i press shift+down key, i cannot select text. Shift+up left and right keys are normal. Only shift+down key is having problem.
I got home from work today and my laptop was being strange. normally when left for a while the screen locks so you have to enter your password to use it. when i came to it the screen was black, like normal, only there was no login box just the mouse curser, that i could move about. so i did the ctrl alt f1 thing and logged in then rebooted. booted up all ok but neither of my shift buttons work. they work in the main login when i first turn it on but after im logged in they do nothing. i tried selecting mutiple items with shift and that doesnt work either. i aint changed any settings or owt like that. does anyone know whats up with it and how i can fix it'questionmark' im using 10.04 on a dell inspiron 1525 laptop. when i log in as a guest the shift buttons work fine. what is it that i have thats stopping them from working 'questionmark'
my keyboard has gone very strange, the shift key is not working, and when i press "t" i get rt. when i press "y" i get "uy" all was fine - have had ubuntu for several months, but last few weeks been strange. software centre no longer works, and cannot "unlock" on ubuntutweak. also my bluetooth dongle has stopped working are all these problems connected? i have reinsrtalled rthe sofrtware cenrtre and ubunrtu rtweak burt rto no avail