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


ADVERTISEMENT

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 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

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

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

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 :: 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 :: 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

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 :: Accidentally Shift-deleted A 6gb Avi File A Minute Ago?

May 12, 2010

i just accidentally shift-deleted a 6gb avi file a minute ago. is it possible to recover it and how? im using lucid and ext4.

View 1 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

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

General :: Convert A Text File From Shift JIS To UTF-8 And Back From The Terminal?

Jul 21, 2011

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?

View 1 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

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

Debian :: Nautilus File Browser - Open Folder By Using The Shift And F4 Keys

Mar 21, 2011

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?

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

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 :: 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 :: 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

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 :: 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

Ubuntu :: Shift Key Not Working / Fix It?

Aug 22, 2010

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.

View 5 Replies View Related

Ubuntu :: Shift Not Working At All?

Mar 19, 2011

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.

View 6 Replies View Related

Ubuntu :: Shift+down Key Not Selecting?

Apr 26, 2011

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.

View 3 Replies View Related

Ubuntu :: Convert A .ods File To A .csv File Via Command Line?

Oct 28, 2010

I would like to convert a .ods file to a .csv file via command line on a server running ubuntu with no graphical interface.

xls2csv does a perfect job on xls files; is there something similar for ods files?

View 1 Replies View Related

Ubuntu :: Shift Buttons Not Working

Jun 10, 2010

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'

View 1 Replies View Related

Ubuntu :: Keyboard Shift Key Is Not Working

Jul 20, 2010

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

View 3 Replies View Related







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