11-25-2014
Quote:
Originally Posted by
Balaji K
Hi All,
I am working in support and we are planning to automate a system to reduce the direct manual intervention to core system.
Please find the below details.
1. we have a web application that runs on Windows Platform.
2. From web application, we need to connect to remote Unix machine.
3. After connecting we need to execute application specific commands and need to capture the output.
4. And the output needs to be displayed in web page.
Web application part is ready but need help in the about requirement.
I heard that "SSHD" can be used to achieve this, but not sure.
Can someone please help....
You can install Cygwin on your windows server and write .bat file using Cygwin commands such as ssh. You can script ssh to run a command on another server. you can also probably connect with public/private authentication, although I have not tried that. Once you prove that you can run all of the jobs that you need to run from Windows you just need something to kick off the jobs when they need to be run.
However, I would still use cron on the Unix/Linux servers, since if your Windows job scheduler breaks the jobs won't run and cron will run as long as the server is running.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I have a IP address of the target machine.Is there is any way to find out whether it is a unix box or windows box without logging into it?.
Regs
Anand (5 Replies)
Discussion started by: u449064
5 Replies
2. UNIX for Dummies Questions & Answers
Hi I need to copy a file from the remote unix server to windows machine.
I read lot of thrad but didn't worked out.
Requesting all to please help. (2 Replies)
Discussion started by: sameerspice
2 Replies
3. UNIX for Dummies Questions & Answers
How to run UNIX commands for practice in Windows 2000 OS?
If you suggest to install Cygwin, please let me know the procedure to install, or else I feel happy if you suggest any stand alone app for running UNIX commands..:) (2 Replies)
Discussion started by: Srikanthk
2 Replies
4. Shell Programming and Scripting
Hi guys, so, I have a server running an sqlite database which is accessed by many client machines working as hardware testers, whenever something fails and needs to be replaced the operator would have to enter the Serial Number of the part being replaced as well as some other data. and... (0 Replies)
Discussion started by: sx3v1l_1n51de
0 Replies
5. Shell Programming and Scripting
Hi,
I work on a jumpserver and I wrote a script to transfer a file from source server to destination server.
#!/bin/ksh
echo "\nEnter the file name:\n"
read name
echo "\nSelect the Source server\n"
echo "1. ODS PROD "
echo "2. ODS DROPBOX"
echo "3. ODS STE"
echo "4. ODS STE DROPBOX"... (6 Replies)
Discussion started by: ajayakunuri
6 Replies
6. Linux
hey guys,
I've done some searching and other than winexe I haven't been able to find a way to send remote commands to a windows machine. The problem I get is with winexe whenever you send the process to the background in a script, I get the following error. :wall: Any help is appreciated!
... (0 Replies)
Discussion started by: terrell
0 Replies
7. UNIX for Dummies Questions & Answers
how to use ssh to run shell script on a remote machine?
ssh user@remote sh ./script.unx
i ran the above command
./script.unx HAS NOHUP COMMAND IN ITS BODY, I AM GETTING ERROR AS NOHUP NOT FOUND...
i tried to run that script from remote server, its working fine
do ineed to set... (6 Replies)
Discussion started by: only4satish
6 Replies
8. UNIX Desktop Questions & Answers
Hello,
I am pretty new to UNIX and would like to know how i can run unix commands on a windows 7 machine. Basically, I want to practice running commands, created bash/awk/etc. scripts. I've read some things about cygwin, but it doesn't sound like it's exactly what I'm looking for.
Any... (4 Replies)
Discussion started by: tester213
4 Replies
9. IP Networking
hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command..
thanks very much, (3 Replies)
Discussion started by: Little
3 Replies
10. Shell Programming and Scripting
Dear user/friends,
After a long gap of 6 years i am back to this forum to find a solution and i hope i will get a solution or atleast a workaround for the problem:p
Following is my task which i am trying for almost 3 days without any success.
1) run this command from my terminal (note i... (7 Replies)
Discussion started by: imas
7 Replies
on(1) General Commands Manual on(1)
NAME
on - execute command on remote host with environment similar to local
SYNOPSIS
| host [command [argument] ... ]
DESCRIPTION
executes a command on a remote host, using an environment similar to that of the invoking user where:
host specifies the name of the host on which to execute the command.
command specifies the command to execute on host
If command is not specified, starts a shell on host. argument ... is a list of arguments for command.
The user's environment variables are copied to the remote host, and the file system containing the user's current working directory is NFS
mounted on the remote host (see nfs(7)). The command is executed on the remote host in the user's current working directory.
Commands using relative path names that reference file system objects within the user's current working file system have the same behavior
as running the command on the client. The behavior of commands using relative path names that cross the file system boundary or commands
using absolute path names depends on the organization of the remote host's file system.
Implicit and explicit use of environment variables may also cause a command's behavior to be dependent on the organization of the remote
host's file system. For example, the environment variable usually contains absolute path names.
Standard input, output and error of the remote command are connected to the appropriate file descriptors on the client.
The remote execution daemon does not allow to execute a remote command.
The signals and are propagated to the remote command. and are ignored by the remote command. All other signals are delivered to the com-
mand.
In order to execute a remote command, the remote host must be configured to execute (see rexd(1M)).
Options
recognizes the following options:
Interactive mode.
This option is required for commands that must communicate with a terminal such as or Terminal mode changes are propagated
to the server. The standard input for an interactive command must be a tty device. The and options are mutually exclusive.
Debug mode.
Print diagnostic messages during startup of the command. These messages are useful for detecting configuration problems if
the command to a specific host is failing.
No input mode.
This option causes the remote command to get end-of-file (EOF) when it reads from standard input, instead of connecting the
standard input of the command to the standard input of the remote command. The option is required when running commands in
the background. The and options are mutually exclusive.
DIAGNOSTICS
The host name
host was not found in the hosts database.
The host host is down, unreachable on the network, or not running
A problem occurred trying to find the user's current working directory
(current_dir).
A problem occurred trying to determine the mount point
of the user's current working directory (current_dir).
The standard input (stdin) of the
command with the option is not a tty device.
Errors that occur on the server
server are propagated back to the client. These messages are documented in the DIAGNOSTICS section of rexd(1M).
AUTHOR
was developed by Sun Microsystems, Inc.
SEE ALSO
exports(4), rexd(1M).
on(1)