C for remote execute


 
Thread Tools Search this Thread
Top Forums Programming C for remote execute
# 1  
Old 03-24-2009
C for remote execute

Hello:
I want to develop a small program in C# which is connecting to UNIX server throgh socket and execute Unix commands from c# and return the message back to client side. May I know does any sample in C# which uses socket programming to connect to unix server and execute unix command.

Thanks a lot!
# 2  
Old 04-02-2009
you can go to CodeProject. Free source code and programming help you will find your answer.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sudo connect to a remote server and execute scripts in remote server

Hello Every one!! I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server. Before this I am using a sudo command to change the user. The place where I am stuck is, I am able to connect to the... (6 Replies)
Discussion started by: masubram
6 Replies

2. Shell Programming and Scripting

execute remote commands with rsh

Hi, I earlier determined I cannot use FTP to execute remote commands on a server. My problem, I need to use a second server to get/put files via ftp onto my primary server and various tertiary servers. my server(A) ---> server (B) ----> server blah(c), server balh(C) I cannot directly... (1 Reply)
Discussion started by: mcclunyboy
1 Replies

3. Shell Programming and Scripting

remote execute awk script

Hi gurus I need to execute awk command on remote machine and write output to stdout. So far Ive tried: ssh server "ifconfig | grep -A 1 "^eth" | awk '{if ($1~/^eth/) {temp=$1} else {print temp $0}}'" ssh server "exec " < file_containing_above_command But neither works Without awk... (9 Replies)
Discussion started by: wakatana
9 Replies

4. Shell Programming and Scripting

Execute scripts on remote server

Hi All, I need to first of all establish a connection to remote unix server non-interactively with the help of a shell script and then connect to oracle database from that server all with this script of mine. Please suggest the best method which could be used to connect to server for executing... (1 Reply)
Discussion started by: m_kapur83
1 Replies

5. SCO

Execute command in remote

Hi, How to execute unix commands in remote unix servers? Thanks, Pintu (2 Replies)
Discussion started by: pintupatro
2 Replies

6. Shell Programming and Scripting

Execute scripts from remote using telnet

Hi having the below code (sleep 1 echo "username" sleep 2 echo "password" sleep 2 echo "cd /home/test1/path" sleep 10 echo "ls -l | grep filename" if exists echo "script1.sh filename" echo "mailx -s "Task Executed" user@domain.com" else echo "mailx -s "File not Exist"... (1 Reply)
Discussion started by: karthikn7974
1 Replies

7. Shell Programming and Scripting

execute remote script asynchronous

Does anyone know how to execute remote script asynchronously? Here is my command TargetList=$testmaker/config/prod_domain.list for targethost in `cat $TargetList`; do rsh $targethost -l bvuser "$HOME/var/script-root/afp/bin/run_nrtp_cache_flush.sh $appName" done (1 Reply)
Discussion started by: leemjesse
1 Replies

8. Shell Programming and Scripting

how to execute a script on remote machine

hi unix guru's i am new to unix shell programming. i found a trouble in executing a script(bali.ksh) which is available on serverA with username xyza, this script contains sqlplus command to retrive the data from the database available on other serverC. Now i need to run the above script... (4 Replies)
Discussion started by: balireddy_77
4 Replies

9. UNIX for Dummies Questions & Answers

execute a command in remote

how exec a command (ex. a cut or grep ) in anoter pc i have IP address, login and password. (another account of unix system) what's the sintax of command ??? es. my ip is 192.xx.xx.xx i make a exec of "ls" redirect in outpu file (> "file) in another pc ( ip 192.44.55.2xxx) (3 Replies)
Discussion started by: ZINGARO
3 Replies

10. UNIX for Dummies Questions & Answers

Remote execute a file via ftp

How can I execute a script on a unix server via ftp from a Windows machine?? Can't use cron/at to schedule the execution and don't want to open up a telnet session just to do it. I want to be able to kick it off after I send the script over on a nightly basis. Reason is script parameter changes... (4 Replies)
Discussion started by: giannicello
4 Replies
Login or Register to Ask a Question