[wpkg-users] Fwd: winexe and EPOLL_CTL_ADD error

Maurizio Marini Gmail marini.maurizio at gmail.com
Wed Mar 16 16:34:23 CET 2011


thnx to gmail i forget to reply list, sorry...



---------- Forwarded message ----------
From: Maurizio Marini Gmail <marini.maurizio at gmail.com>
Date: Wed, Mar 16, 2011 at 9:45 AM
Subject: Re: [wpkg-users] winexe and EPOLL_CTL_ADD error
To: Malte Starostik <malte at malte.homeip.net>


Thnx Malte for helping :)

sadly what you wrote me is not clear to me, neverthless your post
suggests me that i can feed winexe using a pipe

so, instead of reading input with <<EOF,

# cat lancia.sh


/usr/local/bin/winexe --interactive=0 --debug-stderr --system -U
"DOMAIN\Administrator%PASSWORD" //192.168.20.51 cmd.exe <<EOF
net use \\fisico\wpkg
cscript \\fisico\wpkg\wpkg.js /synchronize /nonotify /debug
net use /delete \\fisico\wpkg
echo wpkg_run_is_done
exit 0
EOF




I created an input file with command and I piped it as follows:


# cat input.txt
net use \\fisico\wpkg
cscript \\fisico\wpkg\wpkg.js /synchronize /nonotify /debug
net use /delete \\fisico\wpkg
echo wpkg_run_is_done
exit 0

then
# cat lancia.sh

echo input.txt | | /usr/local/bin/winexe   -U
"DOMAIN\Administrator%PASSWORD" //192.168.20.50 cmd.exe


and this works...
my unix skill are not enough to understand the difference

--
Maurizio Marini



-- 
Maurizio Marini
Via Collemare 14, 61039 San Costanzo (PU)
Tel.   +39.0721870286 Fax  +39-0721950396
GSM +39-335-8259739



More information about the wpkg-users mailing list