10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In bash, you can do something like this:
echo -n "What is your name? " > /dev/tty
read thename < /dev/tty
How can I do the same in python?
I have a python script that has the following content:
import... (2 Replies)
Discussion started by: SkySmart
2. Shell Programming and Scripting
Hi, Have a need to run the below command as a "karuser" from a java class which will is running as "root" user. When we are trying to run the below command from java code getting the below error.
sudo -u karuser -s /bin/bash /bank/karunix/bin/build_cycles.sh
sudo: sorry,... (8 Replies)
Discussion started by: Satyak
3. Shell Programming and Scripting
I running a unix command using sudo option inside shell script. Its working well. But in crontab the same command is not working and its throwing
"sudo: sorry, you must have a tty to run sudo". I do not have root permission to add or change settings for my userid. I can not even ask... (9 Replies)
Discussion started by: Apple1221
4. UNIX for Advanced & Expert Users
I am not sure if I am using the correct terminology but somehow my tty keeps changing on me. The man pages are confusing to me on what exactly the tty is. This is what I see when I run the tty command. Could anyone explain why my tty keeps changing?
~ $ tty
~ $ tty
/dev/pts/0 (6 Replies)
Discussion started by: cokedude
It's happened multiple times and I can't figure out why it's happening or how to undo it, but hitting CTRL-S seems to disable the given TTY on 'nixes of various flavors. Killing the pid doesn't bring the tty back, I end up having to use other tty's until I reboot.
Anyone got some information for... (2 Replies)
Discussion started by: thmnetwork
6. UNIX for Dummies Questions & Answers
When I do a who command I get the following:
mohit :0 2009-04-07 14:07
mohit pts/0 2009-04-07 17:25 (:0.0)
mohit pts/1 2009-04-09 12:07 (:0.0)
mohit pts/2 2009-04-16 11:38 (:0.0)
mohit pts/3 2009-04-16 16:09 (:0.0)
mohit pts/4 ... (1 Reply)
Discussion started by: mojoman
7. Shell Programming and Scripting
Hey folks! I'm trying to run a tcpdump command that monitors for possible malicious traffic. I want to be able to run this on any of several remote boxes that I monitor which all have different capture interfaces. I've gotten the script to the point where it logs into the box and attempts to run... (8 Replies)
Discussion started by: JASI
8. UNIX for Dummies Questions & Answers
hi iam very new to linux can anyone tell me about pts and tty
acctually today morning i logged into my pc at 9:51
when i have given #who
it has given
sam tty7 9:51
sam pts/1 10:11
so what does it mean (1 Reply)
Discussion started by: praneel2k
can anyone tell me what is the meaning of tty,or give me an example of this? (1 Reply)
Discussion started by: magasem
Need help to code some tools dealing with all the tty thingies, raw mode etc ....
Can you juss point me to some cool links related to tty programming, i've tried google but found none so far :confused:
Thanks all. (2 Replies)
Discussion started by: andryk
DSHBAK(1) General Commands Manual DSHBAK(1)
dshbak - format output from pdsh command
The dshbak program formats pdsh pdsh output for humans. Output from each node is consolidated, the leading "node:" is stripped, and a
header block with the node name is added. If the -c option is specified, nodes with identical output are not displayed twice; instead, the
header will contain a list of nodes. The list of nodes is further compressed into node ranges if the node names have a numeric suffix.
-h Display a summary of command line options.
-c Do not display identical output from nodes twice. Instead, print the list of nodes with matching output in the header block.
-d DIR Write consolidated node output to separate files in output directory DIR. Any existing files will be overwritten.
-f With -d, force creation of specified DIR.
A rewrite of IBM dshbak(1) by Jim Garlick
<firstname.lastname@example.org> on LLNL's ASCI Blue-Pacific IBM SP system.