02-08-2004
programming advice needed....
i'm a grad student taking a UNIX course and a networks course (i have a background in C++ and JAVA). i'm trying to combine the two classes.
My questions stems from a networks programming homework assignment below:
"Using the operating system and language of your choice, develop a program to set and monitor a serial interface. Display the interface status at the start of the program. Initialize the interface (DTR, RTS, 8 data bits, no parity, 19,200 bps). Report all interface status changes."
first question:
I want to try this on Linux RedHat (newbie)....can this program be done using shell commands (bash or korn)? Or are those too 'low-level' and i should write it in JAVA on the linux machine?
second question:
once i do start the programming (regardless of language)....if i compile and run it on the RedHat linux machine any idea whether i can connect serial ports (RJ-11 connection) to a computer running Windows XP Pro and not have any interference with the different OSs?
10 More Discussions You Might Find Interesting
1. Programming
what does the statement :
static char a = "a";
store in the executable image. ??
I need to make a command line parameter exist AFTER the program finishes execution.. so that when i run the code next time ( without recompiling ).. i can work with the paramter..
for example:
... (5 Replies)
Discussion started by: a.k.aFireknight
5 Replies
2. Shell Programming and Scripting
/usr/sbin/ifconfig -a | grep "inet" | grep -v "inet6" | grep -v "127.0.0.1" |
grep -v "0.0.0.0"|grep -v "192.168.100.2" | awk '{print $2}'
I use above command to get IP addresses on AIX boxes.Values coming here are set to a variable "Host IPs.IP Addresses" in my fingerprinting engine.
... (4 Replies)
Discussion started by: ak835
4 Replies
3. Shell Programming and Scripting
All,
I would like to know my below requirement can be achieved in any way in Shell Scripting? I will make this requirement of mine as understandable as I can.
Requirement:
I wrote a script 'my.script' which gets user-input tablenames and puts the same into an array. Also I get other inputs... (6 Replies)
Discussion started by: bharath.gct
6 Replies
4. UNIX for Advanced & Expert Users
Scenario:
Command used to capture IPs on a host:
/usr/sbin/ifconfig -a | grep "inet" | egrep -v "inet6|0.0.0.0|192.168.100.2" | awk '{print $2}'
Following for loop used to capture interface names:
for INTERFACE in `/usr/sbin/ifconfig -a | nawk '$1 ~ /:$/ && $1 {sub(":$", "", $1); print... (3 Replies)
Discussion started by: ak835
3 Replies
5. Linux
Evening all,
Im trying to get a script that will:
Select the most 3 recent files in a specific directory
Run a command on them (like chmod)
Ask of you would like to continue
Copy the files to another directory
If a linux guru could help me out, it would be very much appreciated.
Thanks... (2 Replies)
Discussion started by: Wiggins
2 Replies
6. UNIX for Advanced & Expert Users
Dear friends,
Before putting my questions forward, I would like to put some data infront of you, hope you will help me at the end.
This website
Cray-Cyber - Welcome
provides free access to many supercomputers and mainframe computers. When you login through ssh, they provide you with a screen,... (0 Replies)
Discussion started by: gabam
0 Replies
7. Programming
Dear friends,
Before putting my questions forward, I would like to put some data infront of you, hope you will help me at the end.
This website
Cray-Cyber - Welcome
provides free access to many supercomputers and mainframe computers. When you login through ssh, they provide you with a screen,... (5 Replies)
Discussion started by: gabam
5 Replies
8. Shell Programming and Scripting
Hi All,
I am working in production support environment
And I have a lot of checks done daily on system
And depended on values I take specific decision
I am going to develop script to do general operation task
But my problem is this script will be a running process 24 hours
I... (5 Replies)
Discussion started by: maxosmanpad
5 Replies
9. Shell Programming and Scripting
Hi all,
I have written a wrapper script in Perl which will be used on AIX, Linux and Windows and I do not want to change any code for the needs for a specific OS if avoidable.
It works fine so far on all 3 OSes, not blowing up any stacks any more, but I am unsure how to handle writing log files... (7 Replies)
Discussion started by: zaxxon
7 Replies
10. UNIX for Dummies Questions & Answers
Hi Experts,,,
Need your help/advice on how to fix this
I have 2 users under same group (primary group) and i want to give 777 permissions on a directory to one dir owned by user1 when granted i can see than from getfacl but when i actually login as user2 i can touch a file .
... (3 Replies)
Discussion started by: maddyfreaks1
3 Replies
LEARN ABOUT DEBIAN
net::cli::interact::transport::serial
Net::CLI::Interact::Transport::Serial(3pm) User Contributed Perl Documentation Net::CLI::Interact::Transport::Serial(3pm)
NAME
Net::CLI::Interact::Transport::Serial - Serial-line based CLI connection
VERSION
version 1.121640
DECRIPTION
This module provides a wrapped instance of a Serial-line client for use by Net::CLI::Interact.
INTERFACE
app
On Windows platforms you must download the "plink.exe" program, and pass its location to the library in this parameter. On other platforms,
this defaults to "cu", which again you must download and install.
runtime_options
Based on the "connect_options" hash provided to Net::CLI::Interact on construction, selects and formats parameters to provide to "app" on
the command line. Supported attributes:
FIXME: on Windows platforms, only the device attribute is supported.
device (required)
Name of the device providing access to the Serial-line (e.g. "/dev/ttyUSB0" or "COM5".
parity
You have a choice of "even", "odd" or "none" for the parity used in serial communication. The default is "none".
nostop
You can control whether to use "XON/XOFF" handling for the serial communication. The default is to disable this, so to enable it pass
any True value.
speed
You can set the speed (or baud rate) of the serial line by passing a value to this named parameter. The default is 9600.
reap
Only used on Unix platforms, this installs a signal handler which attempts to reap the "ssh" child process. Pass a true value to enable
this feature only if you notice zombie processes are being left behind after use.
COMPOSITION
See the following for further interface details:
o Net::CLI::Interact::Transport
AUTHOR
Oliver Gorwits <oliver@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Oliver Gorwits.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-12 Net::CLI::Interact::Transport::Serial(3pm)