Sponsored Content
Full Discussion: How to control I/O in Linux?
Top Forums Programming How to control I/O in Linux? Post 30334 by lcfoo on Monday 21st of October 2002 02:45:54 AM
Old 10-21-2002
How to control I/O in Linux?

Do anyone know how to program to control I/O - through RS 232?
For example VC++, inport & outport.
Any comment?
 

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Access Control Lists for Linux (Redhat 7.2)

Hi, Does anyone know if Redhat 7.2 allows for file access control lists as you can in Solaris ? And if so, can you give me the basic command as I'm having trouble finding documentation on this. Thanx (1 Reply)
Discussion started by: ianf
1 Replies

2. Linux

how to setup a virtual IP to control 2 server load for linux

Hi anyone know how to setup a setup a virtual IP to control 2 server load for linux? i only have 2 server, i don want to buy another just for the load balance... is there a way to do it? Sumemr (0 Replies)
Discussion started by: summerpeh
0 Replies

3. UNIX for Advanced & Expert Users

How can I remotely take unix/linux tty control!?

Hello everyone!. I am wondering if it is possible to take control of a tty session???!!!. For example: imagine you are running a command in a unix server that will take 12 hours to compleate... now, imagine you are at your home and you want to check how the command is performing or if errors... (2 Replies)
Discussion started by: dragonov7
2 Replies

4. Linux

How to add ^M (control M) in Linux

I would like to add ^M (CTRL V CTRL M) to all lines of the file. This is easy using unix2dos command in SunOS, unix2dos commands appends ^M for all the lines in SUnOS but I dont see the same beahaviou in Linux. My files on Linu'x to be added with ^M at the end of each line. is there any... (3 Replies)
Discussion started by: LinuxLearner
3 Replies

5. Shell Programming and Scripting

I need to make a control panel for a Linux script

has anyone got experience using jsch? Does it give me a prompt when I run a command/ print result back to me. I need to send commands to a linux database like restart,shutdown,stop database caching etc. But in java I want to build a GUI I can use. TO call database commands. and do these... (3 Replies)
Discussion started by: Samuel12
3 Replies
REXEC(3)						     Library Functions Manual							  REXEC(3)

NAME
rexec - return stream to a remote command SYNOPSIS
rem = rexec(ahost, inport, user, passwd, cmd, fd2p); char **ahost; int inport; char *user, *passwd, *cmd; int *fd2p; DESCRIPTION
Rexec looks up the host *ahost using gethostbyname(3N), returning -1 if the host does not exist. Otherwise *ahost is set to the standard name of the host. If a username and password are both specified, then these are used to authenticate to the foreign host; otherwise the environment and then the user's .netrc file in his home directory are searched for appropriate information. If all this fails, the user is prompted for the information. The port inport specifies which well-known DARPA Internet port to use for the connection; the call ``getservbyname("exec", "tcp")'' (see getservent(3N)) will return a pointer to a structure, which contains the necessary port. The protocol for connection is described in detail in rexecd(8C). If the connection succeeds, a socket in the Internet domain of type SOCK_STREAM is returned to the caller, and given to the remote command as stdin and stdout. If fd2p is non-zero, then an auxiliary channel to a control process will be setup, and a descriptor for it will be placed in *fd2p. The control process will return diagnostic output from the command (unit 2) on this channel, and will also accept bytes on this channel as being UNIX signal numbers, to be forwarded to the process group of the command. The diagnostic information returned does not include remote authorization failure, as the secondary connection is set up after authorization has been verified. If fd2p is 0, then the stderr (unit 2 of the remote command) will be made the same as the stdout and no provision is made for sending arbitrary signals to the remote process, although you may be able to get its attention by using out-of-band data. SEE ALSO
rcmd(3), rexecd(8C) 4.2 Berkeley Distribution May 14, 1986 REXEC(3)
All times are GMT -4. The time now is 11:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy