script to connect windows box from linux
--0-1825571544-1283434795=:59162
Content-Type: text/plain; charset=us-ascii
Hi All,
I need to write one Perl script which does the following tasks
1: from linux box , connect to windows box
2: run some commands
3: copy the output of those commands to linux box
can someone please guide me in how to achieve this using Perl script
any direction / advise would be helpful.
regards
Irfan
--0-1825571544-1283434795=:59162--
Re: script to connect windows box from linux
--0-247447393-1283442590=:18013
Content-Type: text/plain; charset=us-ascii
Can somebody please give me any pointer
i am stuck
Regards
Irfan
________________________________
From: Irfan Sayed <irfan_sayed2002 [at] yahoo.com>
To: beginners [at] perl.org
Sent: Thu, September 2, 2010 7:09:55 PM
Subject: script to connect windows box from linux
Hi All,
I need to write one Perl script which does the following tasks
1: from linux box , connect to windows box
2: run some commands
3: copy the output of those commands to linux box
can someone please guide me in how to achieve this using Perl script
any direction / advise would be helpful.
regards
Irfan
--0-247447393-1283442590=:18013--
Re: script to connect windows box from linux
On 9/2/10 Thu Sep 2, 2010 8:49 AM, "Irfan Sayed"
<irfan_sayed2002 [at] yahoo.com> scribbled:
> Can somebody please give me any pointer
> i am stuck
> I need to write one Perl script which does the following tasks
>
> 1: from linux box , connect to windows box
> 2: run some commands
> 3: copy the output of those commands to linux box
>
> can someone please guide me in how to achieve this using Perl script
> any direction / advise would be helpful.
Can you connect from a shell session using the command line? If so, you can
try putting your commands in a Perl program.
If not, then you will probably have to install some software on the Windows
system. Search for "Windows ssh server" in your favorite search engine and
follow the links.
I do not use Windows much, but I do know that what you want to do is
possible. The trick is to install the right software on the Windows system.
Good luck.
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
RE: script to connect windows box from linux
You can also turn on the telnet service within Windows rather than using
SSH. If you want to use SSH, openSSH is a good alternative for Windows,
but you'll have to install Cygwin on the Windows box. Google it, you
should find what you need. Another option would be to install Perl on
the Windows box, the script would run on the Windows box, redirect
output to a text file, and then copy it to the Linux machine with script
via SMB or NFS share.
Just a few ideas.
- Lonnie
> -----Original Message-----
> From: Jim Gibson [mailto:jimsgibson [at] gmail.com]
> Sent: Thursday, September 02, 2010 12:48 PM
> To: Irfan Sayed; beginners [at] perl.org
> Subject: Re: script to connect windows box from linux
>
> On 9/2/10 Thu Sep 2, 2010 8:49 AM, "Irfan Sayed"
> <irfan_sayed2002 [at] yahoo.com> scribbled:
>
> > Can somebody please give me any pointer
> > i am stuck
>
> > I need to write one Perl script which does the following tasks
> >
> > 1: from linux box , connect to windows box
> > 2: run some commands
> > 3: copy the output of those commands to linux box
> >
> > can someone please guide me in how to achieve this using Perl script
> > any direction / advise would be helpful.
>
> Can you connect from a shell session using the command line? If so,
you
> can
> try putting your commands in a Perl program.
>
> If not, then you will probably have to install some software on the
> Windows
> system. Search for "Windows ssh server" in your favorite search engine
> and
> follow the links.
>
> I do not use Windows much, but I do know that what you want to do is
> possible. The trick is to install the right software on the Windows
> system.
>
> Good luck.
>
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
> For additional commands, e-mail: beginners-help [at] perl.org
> http://learn.perl.org/
>
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: script to connect windows box from linux
On Sep 2, 10:11=A0am, lel... [at] claimspages.com ("Lonnie Ellis") wrote:
> You can also turn on the telnet service within Windows rather than using
> SSH. =A0If you want to use SSH, openSSH is a good alternative for Windows=
,
> but you'll have to install Cygwin on the Windows box. =A0Google it, you
> should find what you need. =A0Another option would be to install Perl on
> the Windows box, the script would run on the Windows box, redirect
> output to a text file, and then copy it to the Linux machine with script
> via SMB or NFS share.
Alternatively for the Win32-to-Linux file copy:
PuTTy is a good tool and includes pscp to enable
scripted scp ("secure copy").
--
Charles DeRykus
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: script to connect windows box from linux
--000325579d9281373e048f53557b
Content-Type: text/plain; charset=ISO-8859-1
Hi Irfan,
Please Check out Winexe In Linux, It would be very usefule to you
Because It will Also do the task which you require
It will conect to your windows box, Run the Windows Commands, Brings the
Output to Linux Box
You can Download the software from the Following Link:
http://downloads.sourceforge.net/project/winexe/winexe-0.91. tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fwinexe%2F &ts=1283487923&use_mirror=biznetnetworks
Please Revert back for any clarifications
Regards
Anand
On Thu, Sep 2, 2010 at 7:09 PM, Irfan Sayed <irfan_sayed2002 [at] yahoo.com>wrote:
> Hi All,
>
> I need to write one Perl script which does the following tasks
>
> 1: from linux box , connect to windows box
> 2: run some commands
> 3: copy the output of those commands to linux box
>
> can someone please guide me in how to achieve this using Perl script
> any direction / advise would be helpful.
>
> regards
> Irfan
>
>
>
--
*Anand | Tools and Automation | Appnomic systems | 9591998198*
--000325579d9281373e048f53557b--