10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Note: This posting is related to my posting at bash - Reading answer to control string sent to xterm - Stack Overflow , but I could get there a solution only for bash. I can use that solution, but for curiosity, I wonder, whether I could do this in Zsh as well.
The problem is to send a (Posix-)... (6 Replies)
Discussion started by: rovf
2. UNIX for Dummies Questions & Answers
I am trying to find an example for reading an array instead of reading a file and send out an email in ksh. Can you please help is that possible?
set -A ARR
ARR="A does n't match with B"
ARR="P does n't match with Q"... (11 Replies)
Discussion started by: Ariean
Good evening everyone. I have my finals and I'm facing a problem:
I have a for cycle that is supposed to fork 2 children but somehow it forks only the first one.
What am I doing wrong ?
#include <time.h>... (5 Replies)
Discussion started by: pfpietro
4. Shell Programming and Scripting
My first time here and my english is not very good I hope you understand me.
I'm trying to read a file that contains two zip archive names.
Here my file content is:
At the end of the line there is a \n character.
I read this file from a... (2 Replies)
Discussion started by: Aurea
5. Shell Programming and Scripting
I have to arrange one of the text file by deleting specific lines.
3595 3595 -0.00842773 -0.0085077 0.00368851
12815 12815 -0.00929239 0.00439785 0.0291697
3747 3747 -0.00974353 0.00228922 0.0225058
3574 3574 -0.00711399 -0.00315748 0.0141206
12734... (7 Replies)
Discussion started by: senayasma
6. Shell Programming and Scripting
i have two files as
and the output should be:
3~c (1 Reply)
Discussion started by: mlpathir
7. Shell Programming and Scripting
I have a need to do this in Perl.
script.pl -config file
The script would be doing a wget/LWP on a URL which is defined in the config file.
So when I run the script it should return either one of these conditions -
1) OK with exit status 0.
Should also print "wget URL"
2)... (6 Replies)
Discussion started by: jacki
8. Shell Programming and Scripting
So, I want to read line-by-line a text file with unknown number of files....
while ; do
b=`sed -n '$ap' test`
a=`expr $a + 1`
$here do something with b etc
the problem is that sed does not seem to recognise the $a, even when trying
sed -n ' $a p'
So, I cannot read... (3 Replies)
Discussion started by: hakermania
9. UNIX for Advanced & Expert Users
Hi - I am getting the error
`Error reading response length from authentication socket'
when I ssh from my cluster to another cluster, and then back to my cluster. It doesn't seem to affect anything, but it's just annoying that it always pops up and tends to confuse new users of the cluster. I... (1 Reply)
Discussion started by: cpp6f
10. Shell Programming and Scripting
I am trying to write a korn shell script which posts commands to a server and read the response back from the server.
Any idea how I can read the servers response?
I have tried doing the following:
command to server
echo $ANSWER >file1... (4 Replies)
Discussion started by: frustrated1