Sponsored Content
Top Forums Programming How to get more experience??? Post 7315 by rwb1959 on Monday 24th of September 2001 10:00:56 PM
Old 09-24-2001
You could try writing your own remote command
execution program (i.e. an "rcmd" function
and an "rshd" server).

Beyond that, talk to your boss and ask for
a more challenging assignment. Tell him/her
what you want to do and see if there is anything
that you can be given as an assignment.
 

4 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to get more experience???

Hi everybody, I'm kinda fed up with all the theoritical part of programming. I wonder if there is any online project or something where i can participate to practice my skills? Any other suggestions how to build up practical side of Unix C programming? Thank you all. (1 Reply)
Discussion started by: solvman
1 Replies

2. UNIX for Dummies Questions & Answers

Anyone have experience with Quantum DLT8000

I know this is off subject, but I have been having fits with a Quantum M1500 library with DTL8000 drives, and figured that some of you have had some experience with them. Thanks, Chuck (1 Reply)
Discussion started by: 98_1LE
1 Replies

3. UNIX for Advanced & Expert Users

Comparing experience with AIX, HP-UX, and Solaris

I'm investigating AIX/HP-UX/Solaris for use in a research environment. Although there is plenty of technical documentation online, some important questions can only be answered from long user experience. I'd like to hear whatever you can contribute if you can compare at least two of these. To... (16 Replies)
Discussion started by: wenp
16 Replies

4. AIX

Looking for AIX Practical Experience

I have been in IT for around 7 years now and have benefited greatly from Open Source as well as free commercial offerings like Vmware Server that allow me to setup virtual environments and get some hands on time with different OS's and software. I am starting a new job in a few weeks which has... (5 Replies)
Discussion started by: supercrazy1
5 Replies
rcmd(3) 						     Library Functions Manual							   rcmd(3)

NAME
rcmd, rcmd_r - Allow execution of commands on a remote host LIBRARY
Standard C Library (libc.a) SYNOPSIS
#include <sys/types.h> #include <netdb.h> #include <unistd.h> int rcmd( char **host, u_short port, char *local_user, char *remote_user, char *command, int *err_file_desc); The following function is supported in order to maintain backward compatibility with previous versions of the operating system. int rcmd_r( char **host, u_short port, char *local_user, char *remote_user, char *command, int *err_file_desc, struct hostent_data *host_data); PARAMETERS
Specifies the name of a remote host that is listed in the /etc/hosts file. The function sets the host parameter to be the fully qualified hostname. Specifies the well-known port to use for the connection. The /etc/services file contains the DARPA Internet services, their ports, and socket types. Points to usernames that are valid at the local host. Any valid username can be given. Points to usernames that are valid at the remote host. Any valid username can be given. Specifies the name of the command to be executed at the remote host. Points to an address used by rcmd() to store a pointer to the file descriptor for a channel used by the remote process to write stderr mes- sages and to accept bytes as signal numbers to be forwarded to the process group of the command. If a null pointer is specified, the standard error (stderr) of the remote command is the same as the standard output (stdout). No provi- sion is made for sending arbitrary signals to the remote process. However, it is possible to send out-of-band data to the remote command. Per-thread data for reentrant version. DESCRIPTION
The rcmd() (remote command) function allows execution of certain commands on a remote host. For example, the rcmd() function is used by rsh and rlogin, among others. The rcmd() function looks up a host via the name server or, if the local name server is not running, via the /etc/hosts file. If the con- nection succeeds, a socket in the Internet domain of type SOCK_STREAM is returned to the calling process and given to the remote command as standard input (stdin) and standard output (stdout). Always specify the host name. If the local domain and remote domain are the same, specifying the domain parts is optional. The rcmd() function returns the fully qualified hostname in the host parameter. To reuse the host name in another rcmd() call, you should make a string copy of the host parameter. For example: rcmd ( &host, .... ); first_host = strdup(host); ... rcmd ( &host, .... ); Only processes with an effective user ID of root user can use the rcmd() function. An authentication scheme based on remote port numbers is used to verify permissions. Ports in the range from 0 to 1023 can only be used by a root user. NOTES
The rcmd_r() function is the reentrant version of rcmd(). It is supported in order to maintain backward compatibility with previous ver- sions of the operating system. The netdb.h header file defines the hostent_data structures. RETURN VALUES
Upon successful completion, the rcmd() function returns a valid socket descriptor. The function returns a value of -1 if the effective user ID of the calling process is not root user, if the function fails to resolve the host, or if it encounters a socket connection error. FILES
Contains the service names, ports, and socket types. Contains hostnames and their addresses for the hosts in a network. Contains the name server and the domain name. RELATED INFORMATION
Functions: gethostname(2), rresvport(3), rresvport_af(3), ruserok(3), sethostname(2). Commands: rlogin(1), rsh(1). delim off rcmd(3)
All times are GMT -4. The time now is 04:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy