Re: [Tutor] Remote access from Windows PC to a Linux box

2010-04-21 Thread Mike Baker
Yashwin, Thanks! Your nohup redirection worked great! - Mike On Wed, Apr 21, 2010 at 2:45 PM, Yashwin Kanchan wrote: > Hi Mike > > have you tried running the tshark process in the background... > > *CMD_LIST=[PLINK,sess_name,'/usr/bin/sudo /usr/sbin/tshark &', '-a', > 'duration:10', '-i', 'w

Re: [Tutor] Remote access from Windows PC to a Linux box

2010-04-21 Thread Yashwin Kanchan
Hi Mike have you tried running the tshark process in the background... *CMD_LIST=[PLINK,sess_name,'/usr/bin/sudo /usr/sbin/tshark &', '-a', 'duration:10', '-i', 'wlan0', '-T', 'text', '-V','>', 'out.txt'];* Or if you are using NOHUP try redirecting this way... *CMD_LIST=[PLINK,sess_name,'/usr/b

Re: [Tutor] Remote access from Windows PC to a Linux box

2010-04-21 Thread Mike Baker
Thanks Tim, Your subprocess examples got me started in the right direction. I've moved on to a slightly more advanced problem that I need help with. I want to remotely start a Tshark packet capture session on one of our Linux machines in the lab. I want to start the session from my Windows mach

Re: [Tutor] Remote access from Windows PC to a Linux box

2010-03-31 Thread Tim Golden
On 30/03/2010 17:29, Mike Baker wrote: I'm trying to connect to a Linux box from my Windows machine and execute a series of commands I want a script to always execute the same series of commands without having to do so manually. I also have code that will execute a single command like cat a fi

Re: [Tutor] Remote access from Windows PC to a Linux box

2010-03-30 Thread Lie Ryan
On 03/31/2010 03:29 AM, Mike Baker wrote: > Hi, > > I'm trying to connect to a Linux box from my Windows machine and execute > a series of commands - (ls, pwd, cat 'somefile', etc...). I'm using > Putty to do the ssh and have set up with Putty's Pagent agent to allow > me to enter a passphrase

Re: [Tutor] Remote access from Windows PC to a Linux box

2010-03-30 Thread शंतनू
You can have a look @ paramiko library. http://www.lag.net/paramiko/ On 30-Mar-2010, at 9:59 PM, Mike Baker wrote: > Hi, > > I'm trying to connect to a Linux box from my Windows machine and execute a > series of commands - (ls, pwd, cat 'somefile', etc...). I'm using Putty to > do the ssh

[Tutor] Remote access from Windows PC to a Linux box

2010-03-30 Thread Mike Baker
Hi, I'm trying to connect to a Linux box from my Windows machine and execute a series of commands - (ls, pwd, cat 'somefile', etc...). I'm using Putty to do the ssh and have set up with Putty's Pagent agent to allow me to enter a passphrase once per session to handle security keys between the tw