Re: Can I do it using python?? about xterm and telnet

2006-07-04 Thread Marc Schoechlin
valpa schrieb: Can I do it automatically by python? After that, there have 20 xterm consoles opened and telneted to their corresponding servers. Then I could start to type command in these xterms. Is there a framework/module to automate ssh-sessions/scp-filetransfers with python-programming

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread Lawrence D'Oliveiro
In article [EMAIL PROTECTED], valpa [EMAIL PROTECTED] wrote: I'm a net admin for about 20 unix servers, and I need to frequently telnet on to them and configure them. It is a tiring job to open a xterm and telnet, username, password to each server. Do you need to replicate identical

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread Lawrence D'Oliveiro
In article [EMAIL PROTECTED], placid [EMAIL PROTECTED] wrote: Jim Segrave wrote: Don't use telnet. it's clumsy and has security issues. if youre behind a firewall then it shouldnt matter. Still not a good idea. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread [EMAIL PROTECTED]
agreed, SSH is advisable over telnet in nearly all situations. However, there are a few times where telnet is better. 1. Embeded machines often have stripped down OS's. Telnet is much smaller and cheaper than a full blown SSH install. When every byte counts, you wont find SSH 2. He may have a

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread Nicko
placid wrote: Jim Segrave wrote: In article [EMAIL PROTECTED], valpa [EMAIL PROTECTED] wrote: I'm a net admin for about 20 unix servers, and I need to frequently telnet on to them and configure them. It is a tiring job to open a xterm and telnet, username, password to each server.

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread valpa
Thanks, But I need to to do complicated job in the xterm consoles for servers. So I need to open many xterm consoles and I just want to save my time from telneting...usr/pwd... Network Ninja wrote: valpa wrote: I'm a net admin for about 20 unix servers, and I need to frequently telnet on to

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread [EMAIL PROTECTED]
I can get to my code on wednesday, I'll upload it somewhere you can get a copy of it. But do look into using SSH, because in the long run it is a far better tool. A properly configured SSHD also opens the way to scp. Without scp, copying files means ftp, or unsecured rsync. Do you want tabbed

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread valpa
I don't care about security issue by now :), because every one in my compony know the username/password. It's a shared password. I just want to login into Unix boxes in an efficiently. so I needn't open a xterm console and type telent . usr/pwd for a unix box, and open another xterm, type

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread Paul Rubin
valpa [EMAIL PROTECTED] writes: Can I do it automatically by python? After that, there have 20 xterm consoles opened and telneted to their corresponding servers. Then I could start to type command in these xterms. Have python launch xterm -e somecommand for each server. somecommand would

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread Lawrence D'Oliveiro
In article [EMAIL PROTECTED], valpa [EMAIL PROTECTED] wrote: I don't care about security issue by now :), because every one in my compony know the username/password. Then why bother with a password at all? -- A: Skid-marks in front of the hedgehog. Q: What's the difference between a dead

Re[2]: Can I do it using python?? about xterm and telnet

2006-07-03 Thread Petr Jakeš
v Thanks, v But I need to to do complicated job in the xterm consoles for servers. what does it mean, complicated job? Can you be more specific, please? v So I need v to open many xterm consoles and I just want to save my time from v telneting...usr/pwd... v Network Ninja wrote: valpa wrote:

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread valpa
telnet server must have a password, right? Lawrence D'Oliveiro wrote: In article [EMAIL PROTECTED], valpa [EMAIL PROTECTED] wrote: I don't care about security issue by now :), because every one in my compony know the username/password. Then why bother with a password at all? -- A:

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread valpa
Maybe I'm not state what I want clearly. These Unix boxes are not doing important job like email, web server, etc. In our lab, these unix boxes are connected to be a network system to run our protocols and our job is to test the protocols. they are physically seperated from lab network and

Re: Can I do it using python?? about xterm and telnet

2006-07-02 Thread Jim Segrave
In article [EMAIL PROTECTED], valpa [EMAIL PROTECTED] wrote: I'm a net admin for about 20 unix servers, and I need to frequently telnet on to them and configure them. It is a tiring job to open a xterm and telnet, username, password to each server. Don't use telnet. it's clumsy and has security

Re: Can I do it using python?? about xterm and telnet

2006-07-02 Thread placid
Jim Segrave wrote: In article [EMAIL PROTECTED], valpa [EMAIL PROTECTED] wrote: I'm a net admin for about 20 unix servers, and I need to frequently telnet on to them and configure them. It is a tiring job to open a xterm and telnet, username, password to each server. Don't use telnet.

Re: Can I do it using python?? about xterm and telnet

2006-07-02 Thread faulkner
try pexpect. http://pexpect.sourceforge.net/ valpa wrote: I'm a net admin for about 20 unix servers, and I need to frequently telnet on to them and configure them. It is a tiring job to open a xterm and telnet, username, password to each server. Can I do it automatically by python? After

Re: Can I do it using python?? about xterm and telnet

2006-07-02 Thread faulkner
try pexpect. http://pexpect.sourceforge.net/ valpa wrote: I'm a net admin for about 20 unix servers, and I need to frequently telnet on to them and configure them. It is a tiring job to open a xterm and telnet, username, password to each server. Can I do it automatically by python? After

Re: Can I do it using python?? about xterm and telnet

2006-07-02 Thread vasudevram
Just FYI - pexpect is a Python app that works like Expect - which is by Don Libes and written in TCL. Expect comes with most Linux distributions and is available for most UNIX / Linux versions from its web site http://expect.nist.gov/ The expect man page is enough to get started for simple

Re: Can I do it using python?? about xterm and telnet

2006-07-02 Thread Network Ninja
valpa wrote: I'm a net admin for about 20 unix servers, and I need to frequently telnet on to them and configure them. It is a tiring job to open a xterm and telnet, username, password to each server. Can I do it automatically by python? After that, there have 20 xterm consoles opened and

Re: Can I do it using python?? about xterm and telnet

2006-07-02 Thread [EMAIL PROTECTED]
I used this _EXACT_ solution(copied below) at work a month ago, to start 20ish programs, each with different settings. In this case I HAD to use telnet for some of them, because they were on an embedded machine, 4 of them used SSH(across the internet), and the rest were local programs. It worked

Can I do it using python?? about xterm and telnet

2006-07-01 Thread valpa
I'm a net admin for about 20 unix servers, and I need to frequently telnet on to them and configure them. It is a tiring job to open a xterm and telnet, username, password to each server. Can I do it automatically by python? After that, there have 20 xterm consoles opened and telneted to their