10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am new to writing script and want to use a Bash Piped while-read and read from user input.
if something happens on server.log then do while loop or if something happend on user input then do while loop.
Pseudocode something like:
tail -n 3 -f server.log | while read serverline || read... (8 Replies)
Discussion started by: MyMorris
8 Replies
2. OS X (Apple)
When opening Terminal window under Mac OS Lion, I have a message saying I've got mail . It seems to be somewhere close to ~/Library/Server/Mail/Data/spool/ but I ignore what command to be typed in order to read it and suppress it later once read. (1 Reply)
Discussion started by: shub22
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I need to provide more than one character to "> /dev/tty" through terminal/keyboard input, I have this:
ok=false
while
do
echo " Enter r1 to reformat "
> /dev/tty
read choice
case $choice in
)
echo " bla bla bla "
;;
done
However, in this way,... (3 Replies)
Discussion started by: Gery
3 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
Ive been given a .bin file that I want to do a checksum on to make sure that it is consistant with what I know should be the checksum. I have tried using md5sum but it spits out a 128 bit line rather than a 32 bit line, which is what I want. Can someone help set me off in the right... (7 Replies)
Discussion started by: TeamUSA
7 Replies
5. Programming
I want to get the terminal attributes such as ,
terminal width
terminal height
current cursor position
Can I use ioctl function.
Please help me how to use this function to get these details..
If possible please explain with a sample code.
I'm very new to UNIX progrmming....
Thanks... (1 Reply)
Discussion started by: Sreejesh.S
1 Replies
6. Shell Programming and Scripting
hi all,
am trying to 'grep' some text from a log file and use the 'cut' command to read from that line i just grep'ed to extract date/time and response times.
code sniplet i am using is :
grep -i 'text to grep' Out.log |
while read LINE;
do
... (11 Replies)
Discussion started by: cesarNZ
11 Replies
7. Programming
hi
how to read terminal command,
just i want to read all command which write on terminal
so please tell me any system call, api avilable in c for above purpose (6 Replies)
Discussion started by: munnu
6 Replies
8. UNIX for Dummies Questions & Answers
Hi all
I am using sun solaris 5.8. I wanna know where the value stored if we lock/unlock the terminal and how i can read and use it to my script. I am helpless . So plzzzzzz... (0 Replies)
Discussion started by: pankajarora_12
0 Replies
9. Shell Programming and Scripting
If I do:
cat file | write user
I can cat a file to a users terminal. My question is, how can this user read the input and cat it into a file?
I tried the reverse:
read | file
or
read > file
etc.
But it didn't work. (1 Reply)
Discussion started by: rein
1 Replies
10. UNIX for Dummies Questions & Answers
Hi all
The makefile of a large project produces hundreds of lines of output, which I can't look at any more when the build is finished. If I simply redirect the output to a file, I can't see the progress of the building process...
Is there a possibility to redirect the output to a file and at... (1 Reply)
Discussion started by: Charlie
1 Replies