PUTTY is graphical. It cannot be automated that way. You could do it on the server side, perhaps -- preparing a special account for putty to log into, complete with ssh keys so putty can login passwordless, whose profile goes direct to the scripts you wish to run, etc. Double-clicking on the right profile would put you straight in.
If you cannot do that and must script it on the client side, that's why the same project which made putty also made the plink utility, which can be automated.
Last edited by Corona688; 09-26-2012 at 12:24 PM..
Hi,
I am using dual operating system(windows/linux) in my system.Now the problem is i want to run my .exe(of c languege)
before system ask for loading of operating system.Like my system ask for linux or dos.I want to run my .exe before this. Tell me how can i use this. (2 Replies)
hi all,
i need your help, want syntax can i write in my programming file
so i can combine one executable file with another executable file when i select my executeable file (based on unix operating system)? :( (1 Reply)
Hi All
I want a method in shell script which will embed the exe file into rtf file si that the rtf file can be open in word and so my exe.
Actually what is happening in my system at present :
The report in my system is a self-extracting Zip file with filetype '.EXE'. Double clicking... (1 Reply)
Hello,
I have an test.exe file under a directory. When i execute the .exe file directory from the prompt, i get following error:
$ test.exe <enter>
ksh: test.exe: not found
How do i solve this error?
TIA,
Ramesh (1 Reply)
Hello,
Thank you for reading my Thread.
I am very very new to Perl / Shell Scripting here.
I m assigned some tasks here.
I have an exe file on our server.
I have to navigate to the path and invoke the exe file.
Can someone please guide me with that.
Thanks you,
Skaranth (1 Reply)
Hi,
I have prepared 1 .sh script that is running fine in UNIX box. Now I wanted to run that script from windows box. I am thinking of converting it to .exe so that can run this in windows server and use it.
Overview:
Script basically checks for some values in logs of process running in unix box... (1 Reply)
Hello Gurus,
I have written one shell script will check the database healths.
Now I want to convert the ksh script to a executable one so that I can install it as a software like windows to any unix systems.
How I will achieve this?
Thanks-
p (12 Replies)
Good morning ..,
I have a problem to run my object program. Before, I run my program in cygwin and there is no problem. When I tried in linux (ubuntu), the terminal said that space.exe : command not found.
this is the code in my shell
space.exe gr1
result
space.exe: command not found... (2 Replies)
Discussion started by: weslyarfan
2 Replies
LEARN ABOUT CENTOS
libssh2_channel_forward_listen_ex
libssh2_channel_forward_listen_ex(3) libssh2 manual libssh2_channel_forward_listen_ex(3)NAME
libssh2_channel_forward_listen_ex - listen to inbound connections
SYNOPSIS
#include <libssh2.h>
LIBSSH2_LISTENER * libssh2_channel_forward_listen_ex(LIBSSH2_SESSION *session, char *host, int port, int *bound_port, int queue_maxsize);
LIBSSH2_LISTENER * libssh2_channel_forward_listen(LIBSSH2_SESSION *session, int port);
DESCRIPTION
Instruct the remote SSH server to begin listening for inbound TCP/IP connections. New connections will be queued by the library until
accepted by libssh2_channel_forward_accept(3).
session - instance as returned by libssh2_session_init().
host - specific address to bind to on the remote host. Binding to 0.0.0.0 (default when NULL is passed) will bind to all available
addresses.
port - port to bind to on the remote host. When 0 is passed, the remote host will select the first available dynamic port.
bound_port - Populated with the actual port bound on the remote host. Useful when requesting dynamic port numbers.
queue_maxsize - Maximum number of pending connections to queue before rejecting further attempts.
libssh2_channel_forward_listen(3) is a macro.
RETURN VALUE
A newly allocated LIBSSH2_LISTENER instance or NULL on failure.
ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
LIBSSH2_ERROR_PROTO - An invalid SSH protocol response was received on the socket.
LIBSSH2_ERROR_REQUEST_DENIED - The remote server refused the request.
LIBSSH2_ERROR_EAGAIN - Marked for non-blocking I/O but the call would block.
SEE ALSO libssh2_channel_forward_accept(3)libssh2 0.15 1 Jun 2007 libssh2_channel_forward_listen_ex(3)