05-11-2007
gettydefs ...
![Wink Smilie](https://www.unix.com/images/smilies/wink.gif)
just looked it up
10 More Discussions You Might Find Interesting
1. SCO
I want to output something to file1.
And I want to see it in windows xp
would you tell me how? (2 Replies)
Discussion started by: fresh
2 Replies
2. Windows & DOS: Issues & Discussions
This question maybe in the wrong category but I'm posting here due to urgency.
In DOS is there a command to perform a similar function to spool command in SQL or Script command in UNIX?
I want to print all command line output to a file but I don't want to use the echo command for each line.
... (2 Replies)
Discussion started by: stevefox
2 Replies
3. UNIX for Dummies Questions & Answers
I have navigated every DOS and UNIX FAQ to find the DOS equivalent of the UNIX ps command (ps -f would be even better) but all listings of DOS<>UNIX commands do not have it (they all have the same basic commands listed). DOS must have a way of detecting running processes and TSRs. mem /c is the... (7 Replies)
Discussion started by: dancingfool
7 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
what is the equivalent command of the DOS set that lists all the environment variable and their values?
Xavier. (3 Replies)
Discussion started by: xxavier
3 Replies
5. Windows & DOS: Issues & Discussions
how do we create aliases to commands in dos?
thanks (9 Replies)
Discussion started by: milhan
9 Replies
6. Windows & DOS: Issues & Discussions
In Unix I can use command line to do a find for files older than so many days and remove them. I can also capture the date to see if its a saturday and do something different. Are there any dos/intel command line equivalent commands to do this on a windows 2003 server? This is from an... (6 Replies)
Discussion started by: MizzGail
6 Replies
7. SCO
hi
I have SCO 5.0.6 and if I type Ctrl-D, the system will NOT enter single user mode, it goes into multi-user mode.
If I use the init 1 command, I get right back into the cycle ... an I'm at the Ctrl-D prompt again. (2 Replies)
Discussion started by: ccc
2 Replies
8. SCO
Hi all
I have installed a demo version of SCO OpenServer 5.0.2, I finally found it is Desktop Interface, I would like to know how to change its interface to dos based interface?
If you have any ideas, please tell me then. Thank you (2 Replies)
Discussion started by: TinhNhi
2 Replies
9. SCO
I am very new to SCO Unix so I apologize if this is a easy or dumb question.
I have a 160GB SATA hard drive and SATA CD-ROM drive connected to one of my systems. I have both the drives running in compatibility mode. I also have the hard drive set as a primary master and the CD-ROM drive set as... (10 Replies)
Discussion started by: NPIGuy
10 Replies
10. Windows & DOS: Issues & Discussions
Hi,
The title of this post is a little vague but I couldn't think of what to call it.
In Unix you can perform the following command
ftp -v IPADDRESS <<END
put FILE
END
In a DOS command prompt, is it possible to do the same kind of thing that the "<<END" does?
So for example, ... (4 Replies)
Discussion started by: Ste_Moore01
4 Replies
LEARN ABOUT PHP
dio_tcsetattr
DIO_TCSETATTR(3) 1 DIO_TCSETATTR(3)
dio_tcsetattr - Sets terminal attributes and baud rate for a serial port
SYNOPSIS
bool dio_tcsetattr (resource $fd, array $options)
DESCRIPTION
dio_tcsetattr(3) sets the terminal attributes and baud rate of the open $fd.
PARAMETERS
o $fd
- The file descriptor returned by dio_open(3).
o $options
- The currently available options are:
o 'baud' - baud rate of the port - can be 38400,19200,9600,4800,2400,1800, 1200,600,300,200,150,134,110,75 or 50, default
value is 9600.
o 'bits' - data bits - can be 8,7,6 or 5. Default value is 8.
o 'stop' - stop bits - can be 1 or 2. Default value is 1.
o 'parity' - can be 0,1 or 2. Default value is 0.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
Setting the baud rate on a serial port
<?php
$fd = dio_open('/dev/ttyS0', O_RDWR | O_NOCTTY | O_NONBLOCK);
dio_fcntl($fd, F_SETFL, O_SYNC);
dio_tcsetattr($fd, array(
'baud' => 9600,
'bits' => 8,
'stop' => 1,
'parity' => 0
));
while (1) {
$data = dio_read($fd, 256);
if ($data) {
echo $data;
}
}
?>
NOTES
Note
This function is not implemented on Windows platforms.
PHP Documentation Group DIO_TCSETATTR(3)