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


ADVERTISEMENT

General :: Unable To Login To Server Through Console But Able To Login Via Network Using Putty?

Mar 13, 2009

I am not able to login to server from console attached to server, every time i enter username & password but it again asks for username & password. But when i try to login to server from remote machine, login happens properly.

View 4 Replies View Related

General :: Any Server Available In Internet To Login Using Putty And Learn Commands?

Jan 29, 2011

I would like to learn basic linux commands and editors (eg : vi). Am using windows and it is difficult for me to install linux in ma laptop. So is there any free linux login servers available in internet so that I can login to server with putty and try using basic linux commands and editors.

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

General :: Use Putty To Download File?

Mar 2, 2011

I want to use Putty to login to my linux system , I use Reflection before , it works fine to download file , but it can not download file by using the same method , can advise what protocol that Putty that support ?

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

Security :: Disable First Level Login Via Putty

Sep 4, 2010

Is there anyway I can disable an account from being logged in via Putty, but permits someone else to "su" into the account? For example, an application is being run as "app_account". Because there will be multiple people administering this application and the password is shared for this "app_account", I want to disable 1st level login for it. I want to make it such that only the permitted people can "su - app_account", once they have logged into their personal account. How can I do this? If I set app_account's shell to /sbin/nologin, the users are also not allowed to do "su - app_account".

View 2 Replies View Related

Server :: Can't Login Through Putty Unless Have Already Logged Into Ubuntu?

Dec 21, 2010

I setup logging in through putty client with keys, and password disabled, could log in from all machines on my network (xp and 7) with putty.When I finished hut down the server.Today I turned on the server box and thought I'd try logging in through putty. It kept telling me the server was rejecting my key.I plugged in a monitor and keyboard into the server and logged in via password then had no problem logging in through putty client.Question is, every time I shut the server down do I have to plug in the monitor and keyboard, then login, to be able to login remotely?

View 8 Replies View Related

Ubuntu :: Setup A Putty Session To Putty From One Machine To Another?

May 15, 2010

I am trying to setup a putty session to putty from one Ubuntu machine to another. I know how to setup to connect to the machine from Windows and I am using the same settings for the one I am trying on the Ubuntu machine but it fails to connect. It fails immediately so I believe that putty is not able to find ssh. Is there some configuring that I need to do.

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

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

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 Networking :: X-fering File Using SSH & PuTTY

Apr 8, 2011

I am trying to transfer a file from my work Win7 computer, to my Ubuntu home server. I can SSH into my server using PuTTY with no problems. The "Access denied" occurs after I type my password of course.I just want to push a file from my Win7 machine to my Ubuntu using SSH and PuTTY. PuTTY is what I have loaded on my work machine.

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

Server :: Putty/SSH Login Failed When Using RSA Public Key: 'Server Refused Our Key'

Sep 19, 2010

ENV: openssh-server-5.4p1-1.fc13.i686 Problem: I am unable to ssh using Putty (when using ssh-auth/pki) to a fedora box . I get the message: Server refused our key. Here's what I tried so far:

- Tried generating rsa (as well as dsa) keys on the linux server and put the generated public key in the ~/.ssh/authorized_keys. Then I converted the private key using PuttyGen.

- Also, tried generating keys using PuttyGen and then converted the public key and placed it on the server

- Configured the sshd server (ssh_config) for using RSAAuthentication=yes. Tried all combinations and purmutations; however, I still get the "Server refused our key" error.

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

Ubuntu :: PuTTY SFTP Syntax Required To Copy A File From Computer 10.0.2.2, On User T0p's Desktop?

Aug 27, 2010

PuTTY SFTP syntax required to copy a file from computer 10.0.2.2, on user t0p's Desktop (eg /t0p/Desktop/file.txt , to the XP computer? The PuTTY instructions seem to make no sense to me.

View 1 Replies View Related

General :: How To Move Windows In Batch From One Display To Another

Sep 26, 2010

I have several program windows open on my main display (showing on my physical screen).I've created a second display for VNC connections (using vncserver :14).Is there a way I can move all open windows from the default display to the VNC display?

View 1 Replies View Related

General :: Specify Top's Screen Width In Batch Mode?

Oct 14, 2010

I am logging the output of: top -b -n1 -c so I can keep track of which processes are using how much memory and CPU each minute. When top shows the full command line (-c), the command line text gets truncated at the edge of the screen. This is perfect when running and displaying in a terminal. However, I am sending STDOUT to a file for parsing later and want the full command name logged. Is there a way I can tell top to use a specific screen width? (I know it maxes at 512, that would be fine)

Is there a better way to achieve a similar goal: get periodic stats about which processes are running and how many resources they are consuming?

View 2 Replies View Related

General :: Batch Renaming Of Files In A Directory Using Sed

Dec 11, 2010

I run a script which generated about 10k files in a directory. I just discovered that there is a bug in the script which causes some filenames to have a carriage return (presumably a '' character).

I want to run a sed command to remove the carriage return from the filenames.

Anyone knows which params to pass to sed to clean up the filenames in the manner described?

I am running on Linux (Ubuntu)

The character causing the filename to 'break up' accross multiple lines appear to be a CR (carriage return) instead of ' '. The filename is being diaplayed in thetitle of a text editor with %0D in the positions of where the file name breaks up. So I need to remove the CR chars from my filenames.

View 1 Replies View Related

General :: Batch Renaming Based On Wildcards?

Jul 20, 2010

Is there a way to do a batch renames of files that will keep each individual filename, but change it in the way I want?

The specific issue is this. I have a harddrive with something like 1300 movies on it. They're all organized alphabetically, but there are like 200 movies that begin with 'The'. I want to rename all of these movies that begin with The so that the The at the beginning is dropped and added at the end (for example, turn "The Shawshank Redemption" into "Shawshank Redemption, The"). I'd like to do this with a simple command if its possible.

View 2 Replies View Related

General :: Regular Expressions In Batch Script?

May 5, 2010

I am pretty new at this topic but I would like to learn it from example. The first thing I am working on is to modify the command date to be shown as DD/MM/YY only using regular expression but I dont know how to combine what there is in the regexp tutorials online and the syntax for batch scripting. Any help?

Here is what I what.
run a file test: ~# ./test
Where file test is:
#!/bin/bash
#
DATE=$( date )

[Code]..

Also if you can point me to good regexp tutorials (directed towards batch scripting), that will be great.

View 8 Replies View Related

General :: What Program Can Batch Convert Video?

Apr 22, 2011

I have many video files that I'm trying to convert from *** to .mp4..Currently I'm using Handbrake which does a good job but getting it started is very tedious. In Handbrake I need to confirm and add to queue all of the files. When there are over 200 files at a time it takes way too long. If there is a way to not confirm all of the files please let me know.What program can I use to just add a folder and have it automatically add all of the files to my queue?

View 9 Replies View Related







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