10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I am trying to write a shell script that starts a program, reads from its stdout and can write to its stdin.
I'm having trouble to get it to work, I tried using named pipes, and using exec and file descriptors.
Just couldn't get it to work, so I thought I'll post it here to see if... (4 Replies)
Discussion started by: test it
4 Replies
2. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write the a shell script program to remove all space characters stored in the shell variable TEXT.... (7 Replies)
Discussion started by: kofine05
7 Replies
3. Shell Programming and Scripting
shell script in Unix/Linux to find the lines numbers of a text file are having word which is 5 to 10 characters long and having first letter as a capital letter. (3 Replies)
Discussion started by: usersnehal
3 Replies
4. Shell Programming and Scripting
I want to substitute a charactor "PAN" with "TAN" in a shell, I used sed command in shell, it wo'nt work but the same is run from command prompt it was successful. the command is
sed ' s/PAN/TAN/g ' <i/p> > <o/p>
sed ' s/^M/^M/g ' <i/p> > <o/p> (1st ^M is Ctrl+V+M, 2nd should be line feed/next... (1 Reply)
Discussion started by: anil_kut
1 Replies
5. Shell Programming and Scripting
Hi,
Can anyone pls give a sample to execute a shell script from C program
Thanks (2 Replies)
Discussion started by: baigmd
2 Replies
6. Shell Programming and Scripting
Hi,
Could anybody please let me know how to call a C_Program
from shell script. I know through command "system" we can call
shell script from C program.
Awaiting response.
Thanks and regards,
Chanakya M (4 Replies)
Discussion started by: Chanakya.m
4 Replies
7. Shell Programming and Scripting
if ( ( grep -i "Exception : " /home/dklog* ))
then
echo " improper combination"
elsif ( ( grep -i "invalid" /home/dklog*))
then
echo " wrong process "
fi
fi
in the above case i am facing the the syntx error
please help in this case... (3 Replies)
Discussion started by: mail2sant
3 Replies
8. Shell Programming and Scripting
#!/bin/csh
# This program will add integers
#
#
# add integer1 ..
#
# Check for argument
if ($#argv == 0 ) then
echo "usage: add integers"
exit 1
else
set input = $argv
endif
#
set sum = 0
foreach var ( $input )
@sum = $sum + $input
end
# (1 Reply)
Discussion started by: haze21
1 Replies
9. Shell Programming and Scripting
Hi,
I tried this with my shell program and it didn't work:
/usr/ucb/sed '/$employeeID/d' /usr1/log/logfile
How to let sed see my variable employeeID within my shell program?
Thanks! (1 Reply)
Discussion started by: whatisthis
1 Replies
10. Filesystems, Disks and Memory
shell script for sorting,searchingand insertion/deletion of elements in a list (1 Reply)
Discussion started by: jayaram_miryabb
1 Replies