non interactive su via batch

Canon Pixma mx860 all-in-one printer
February 1, 2010 at 16:21:50
Specs: Windows XP
hi
i am trying to run a batch file on a xp machine that uses plink to run commands on many (6000+) unix boxes.
i want to use the su command so as i can kill processes on the box, but i want the batch file to pass the password to su.
I cant go round and edit the sudo files on every box, is there a solution?

edited by moderator: Post moved from Windows XP Forum


See More: non interactive su via batch

Report •

#1
February 1, 2010 at 18:10:01
http://expect.nist.gov/

Playing to the angels
Les Paul (1915-2009)


Report •

#2
February 2, 2010 at 00:32:07
yes, i know this is possible, but i dont want to install expect on 6000+ boxes, is it not possible to pipe a password into this command?

Report •

#3
February 2, 2010 at 04:49:57
i guess no one knows howto do this

Report •

Related Solutions

#4
February 2, 2010 at 05:22:10
It's possible, but programming and scripting questions need to be asked on the Programming Forum. (Hint: use the -m option)

Report •

#5
February 2, 2010 at 06:25:47
use -m will still prompt for a password though...

Report •

#6
February 2, 2010 at 13:09:32
Did you fully read how to use expect?

Playing to the angels
Les Paul (1915-2009)


Report •

#7
February 3, 2010 at 01:47:46
expect is a program, as such in order to use it on 6000+ machines i would need to install it on all the boxes, which defeats the whole point and is not something i am willing to do...i though i had already mentioned this?

Report •

#8
February 3, 2010 at 08:52:22
Guess this is duplicate of http://www.computing.net/answers/pr...

Report •

#9
February 3, 2010 at 10:12:13
It is, but both have a conversation, so I'm loathe to delete either.

Report •

Ask Question