07-31-2009
But I think I need an array, because I want to check within a script if there is MOVIE without '*' and if there is a MOVIE without '*', a mail will be send. That part is already written and running, I just need a working if-clause.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys i had a script which will generate a log file.Is there any commands to check the dynamic changes in the log file,i.e if i open the log file i should able to see the updating changes live...I hope u understand my query... (2 Replies)
Discussion started by: vinoo
2 Replies
2. Programming
I am facing a strange error while creating posix threads:
Given below are two snippets of code, the first one works whereas the second one gives a garbage value in the output.
Snippet 1
This works:
--------------
int *threadids;
threadids = (int *) malloc (num_threads * sizeof(int));
... (4 Replies)
Discussion started by: kmehta
4 Replies
3. UNIX for Dummies Questions & Answers
I have a file that is a text file, how to get all the words into and array, i am able to get each line but not each word :(.
Here is what i searched and already found...https://www.unix.com/shell-programming-scripting/99207-pipe-text-file-into-array.html.
This one reads a whole line into... (6 Replies)
Discussion started by: SasankaBITS
6 Replies
4. Shell Programming and Scripting
I wrote a simply perl that searched a file for a particualr value and if it found it, rite it and the next three lines to a file. Now I have been asked to check those next three lines for a different value and only write those lines if it finds the second value.
I was thinking the best way to... (1 Reply)
Discussion started by: billprice13
1 Replies
5. Shell Programming and Scripting
I need some help with this code below, i doesnt know why it will run twice with my function, but my function only got if else, any other way that can read line and put into array?
while read line; do
read -A array <<<$line
n=${#array}
for ((i=1;i<$n;i++)); do
print... (1 Reply)
Discussion started by: gavin_L
1 Replies
6. Shell Programming and Scripting
Hi,
I need to read a file into array and print them in a loop:-
1st file :-cat a.txt
RC1
RC2
RC3
RC4
My Program:-
#!/bin/ksh
index=0
while
do
read cnt<a.txt
print "cnt value is ${cnt}
index=`expr $index + 1`
done
Code tags for code, please. (5 Replies)
Discussion started by: satishmallidi
5 Replies
7. Shell Programming and Scripting
Hi I have a file with contents as below :
server | ABC Issue : File System Missing XYZ Issue : Wrong Syntax PQR Issue : Old File to be removed
Now I am looking for an o/p similar to
server <tab> ABC Issue : File System Missing
<tab> XYZ Issue : Wrong Syntax
<tab>... (4 Replies)
Discussion started by: deo_kaustubh
4 Replies
8. Shell Programming and Scripting
First of I would just like to state that I am not looking for you guys to just do my work for me, I do want to learn and actually understand everything that is happening.
Hey all, I am having trouble on this. What I need to do is... Write an executable C file that will take a text file (not a... (8 Replies)
Discussion started by: innvert
8 Replies
9. Shell Programming and Scripting
I am trying to identify all messages or prompts from a number of COBOL programs and they can usually be identified by a pair of double quotes on one line. However, sometimes the literal will not be finished on the first line but after a dash in column 7 of the next line, the literal will be... (6 Replies)
Discussion started by: wbport
6 Replies
10. UNIX for Dummies Questions & Answers
Hi Folks,
I have a requirement to develop a shell script. PFB my requirement,
Requirement:
I need to check an empty line after the end of each header in respective file and if a empty line is present simply echo file OK and if empty line is not present echo "Adding empty line" and add an... (6 Replies)
Discussion started by: tpk
6 Replies
LEARN ABOUT DEBIAN
sendmailconfig
SENDMAILCONFIG(8) System Manager's Manual SENDMAILCONFIG(8)
NAME
sendmailconfig - configure sendmail for Debian systems
SYNOPSIS
sendmailconfig [--no-reload]
DESCRIPTION
sendmailconfig is used to simplify the configuration of sendmail(8) for use on Debian systems.
In the simplest case, you may run this program to (re)configure sendmail for your Debian system at any time. It will modify the file
/etc/mail/sendmail.mc in order to create a working sendmail configuration which will be written to the file /etc/mail/sendmail.cf.
For advanced configurations, you can modify the sendmail.mc file before generating sendmail.cf. Future invokations of sendmailconfig will
preserve these changes provided they are made at the end of the file.
Normally sendmailconfig will ask if you want to reload sendmail after making changes to its configuration. The --no-reload option will
avoid this question.
FILES
/etc/mail/sendmail.mc
sendmail m4 input to generate sendmail.cf
/etc/mail/sendmail.cf
actual sendmail configuration file
/etc/mail/sendmail.cw
names for which we will accept mail in the standard configuration
/etc/mail/sendmail.ct
names of trusted users in the standard configuration
SEE ALSO
sendmail(8)
AUTHOR
Robert Leslie <rob@mars.org>
21-Jan-1997 SENDMAILCONFIG(8)