HPE 9000 and HPE e3000 Servers
1833772 Members
2382 Online
110063 Solutions
New Discussion

running a dos command from hp-ux 11.0

 
KEVIN BROWN
New Member

running a dos command from hp-ux 11.0

How can I execute a dos batch file while in hp-ux? I prefer executing a batch file but an exe file may work ok.
4 REPLIES 4
Rita C Workman
Honored Contributor

Re: running a dos command from hp-ux 11.0

First your a bit 'windozed'...
(no offense meant..)

This is UNIX...and it does not matter if it ends in .bat or .exe or .whatever.
A file is executable based on 1) that the coding within the works and 2)that the permissions set on the file include 'x' for executable
4=read
2=write
1=execute
So 7 would allow a file to be read/write/execute. This is set using the chmod command option:
chmod 777
...makes it rwx for owner/group/everyone else

The executable file can be written in any code the system is able to 'compile/execute'-be it script for cshell,bourne_shell,posix_shell, C, C++, Java, SQL, etc...

Hope that helps,
Rita

..unless your meaning how do I convert a file from DOS to UNIX..than the command is:
dos2unix
..and the reverse is true also:
unix2dos

Rgrds,
Rit
KEVIN BROWN
New Member

Re: running a dos command from hp-ux 11.0

I guess my question was missunderstood just a little. The DOS command will reside on a separate NT workstation box from the hp9000. The only way these are connected is via the network. I am runnin a COBOL program on the hp9000 that needs to execute a DOS batch on the NT workstation.
But still many thanks for your help.
harry d brown jr
Honored Contributor

Re: running a dos command from hp-ux 11.0

Look into ssh from www.openssh.org,

http://www.openssh.org/windows.html


live free or die
harry
Live Free or Die
Bill Hassell
Honored Contributor

Re: running a dos command from hp-ux 11.0

This is an NT question. Unlike Unix where comand line interfaces are available out of the box, even through the network, NT (and other PC windows versions) expects user interfaces to originate at the keyboard and mouse.

Now you can enable IIS (a very bad thing if you have not kept NT up to date on patches) and see what services are available. I think that NT does not have any incoming telnet at all (must use a 3rd party program), but Win2000 does provide what HP-UX knows as a telnet daemon (telnetd).

You can start telnet server in Win2000 with the DOS command: net start tlntsvr (may require MMC services to be configured).


Bill Hassell, sysadmin