10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need a script to keep polling "receive_dir" directory till "stopfile" get written in the directory.
This has to run despite empty directory.
So far i have this but fails if receive_dir is empty with no files with "unary operator expected". Help !!
for i... (1 Reply)
Discussion started by: iaav
2. Shell Programming and Scripting
I have seen lots of entries on stderr and stdout, but I did not see a solution to my question.
In running a script, I call another script. I want to capture output and error messages from the called script. I am able to redirect the stdout from the called script to my output file, but I don't... (2 Replies)
Discussion started by: timtoben
3. Shell Programming and Scripting
I am very new to using BASH, but I have a problem with a piece of script that I have been working on. Basically the script goes through a mailbox file looking at particular aspects of the file, for example how many spamwords there are email address etc. It does this pretty well except for an... (13 Replies)
Discussion started by: 9aza
4. Shell Programming and Scripting
I have Mac OS X, and I wrote a bash shell script that does some encryption of files. When the user of the script does something wrong I want it to send an error message to the stderror of the script. Here's the code snippet I have:
printf "$1: File not found\nNote: This script will only work... (6 Replies)
Discussion started by: Ultrix
5. Shell Programming and Scripting
Can someone help me to write a perl script or kornshell reading a two files and outputting to comma format.
Here is the two files
id, diskname, diskgroup, diskisze(GB), FC
1, CN34, GRP1, 30, FC_CN34
2, CN67, GRP5, 19,
4, VD1, GRP4, 23, FC_VD1
6, CF_D1, ... (0 Replies)
Discussion started by: deiow
6. Shell Programming and Scripting
have a look into the attachment, i am not familiar with unix, can you please help me in this regard.
thanks in advance, :)
Geeko (4 Replies)
Discussion started by: geeko
7. Shell Programming and Scripting
I'm trying to take a list of domains, find out the MX resolve it to IP then find out what the NS is and output the contents to a new file.
The only problem i'm having is when checking the Ip or host of the MX i can only get it to print the column with the MX record and the results of the host... (1 Reply)
Discussion started by: spartan22
8. Shell Programming and Scripting
Is it possible to exit nicely(ie, to echo a message with the error occurred) from a shell script(quiet a big one :)) once it encounter an error in between the lines?
For example, in my script I am calling the command mkdir and sometimes (when the directory already exists) it... (4 Replies)
Discussion started by: Sreejith_VK
9. Shell Programming and Scripting
script outputting cant find anything wrong with the script either... :
#count execution script
time=`expr $time + 1`
echo "The current tick is 100"
fi (2 Replies)
Discussion started by: aspect_p
10. Shell Programming and Scripting
When i run sh -x test.sh, expr outputs x=expr $x + 1 instead of doing the arithmetic.. been working on this overnight.. and its being a pain in the arse if you ask me.. :confused::confused:
#script for downloading numerical filenames
if ... (2 Replies)
Discussion started by: aspect_p