I am trying to have the below batch file do following two things:
1. only allow the values YES,yes,Y,y, or NO,no,N,n
2. increment the counter %var1 only if answer to question 2 is "y" and not able to get the syntax correct. If %var1%=1 then I am trying to display function :end. Thank you .
Hi all
I try to execute SSH commands on several hosts in a while-loop.
There seems to be a problem with file-handle, first cycle works correct but no other one will follow due to the while condition is false even that there are many more host entries (lines) in all_hosts.dat.
... (3 Replies)
Hi Guys,
My first post..:)
Right...I want to move existing files (with some date in their name) currently in $mainftp, to $mainfolder/$foldate/system1.
I'd like to be able to increment date in the for loop? Is this possible or should I use a different technique.
The script return the... (4 Replies)
Hi ,
I am trying to increment the nested for loops parellely,but i cant ,i used continue 2 but the second loop not getting increment.
no1="1 6 5 4 8"
no2="4 7 8 0 1"
for var1 in $no1 ; do
for var2 in $no2 ; do
line1
line 2
line 3
continue 2
done
done
Please help on this (4 Replies)
Hello men.
How can i build a simple increment for $a by Xquery such as ?
let $a := 0
for $i in (1 to 10)
let $a := $a + 1
return $a
why a in this loop always is '1'
Thank you for reading, its will really helpful for my job if i can solve this problem :D:D (3 Replies)
Hi Guys
I am new to scripting.Please forgive for asking basic questions.
I want to write a script to check whether the logs are getting updated in last 15 mins.
cat server
192.168.1.6
192.168.1.7
cat list
192.168.1.7 /logs/logpath1
192.168.1.7 /logs/logpath2
192.168.1.6... (4 Replies)
Daily stupid question. I want to increment the file name everytime the script is run. So for example if the filename is manager.log and I run the script, I want the next sequence to be manager.log1. So to be clear I only want it to increment when the script is executed. So
./script... (10 Replies)
Hi,
Need some help...
I want to execute sequence commands, like below
test1.sh
test2.sh
...etc
test1.sh file will generate log file, we need to search for 'complete' string on test1.sh file, once that condition success and then it should go to test2.sh file, each .sh scripts will take... (5 Replies)
HI,
I have a file as mentioned below. Here one batch is for one user id.Batch starts from |T row and ends at .T row. I want to create a new file by reading this file. The condition is for record 10(position 1-2), if position 3 to position 17 is 0 then delete the entire batch and write into the new... (9 Replies)
Hi,
I am using solaris 5.10 environment and need help on doing parallel increment of nested for loop.
Samples
#inside the code the values assigned to a variable by another awk command will be like
a=/xyz/pg/as
/xyz/pg/as2
/xyz/pg/as3
b=/xyz/sd/fd1
/xyz/sd/fd2
/xyz/sd/fd3
for q in... (1 Reply)
Discussion started by: ananan
1 Replies
LEARN ABOUT DEBIAN
sync_members
SYNC_MEMBERS(8) System Manager's Manual SYNC_MEMBERS(8)NAME
sync_members - Synchronize a Mailman mailing list's membership with a flat file.
SYNOPSIS
sync_members [options] -f file listname
DESCRIPTION
This script is useful if you have a Mailman mailing list and a sendmail :include: style list of addresses (also as is used in Majordomo).
For every address in the file that does not appear in the mailing list, the address is added. For every address in the mailing list that
does not appear in the file, the address is removed. Other options control what happens when an address is added or removed.
OPTIONS -n, --no-change
Don't actually make the changes. Instead, print out what would be done to the list.
-w={ yes | no }, --welcome-msg={ yes | no }
Sets whether or not to send the newly added members a welcome message, overriding whatever the list's `send_welcome_msg' setting is.
With -w=yes or -w, the welcome message is sent. With -w=no, no message is sent.
-g={ yes | no }, --goodbye-msg={ yes | no }
Sets whether or not to send the goodbye message to removed members, overriding whatever the list's `send_goodbye_msg' setting is.
With -g=yes or -g, the goodbye message is sent. With -g=no, no message is sent.
-d={ yes | no }, --digest={ yes | no }
Selects whether to make newly added members receive messages in digests. With -d=yes or -d, they become digest members. With -d=no
(or if no -d option given) they are added as regular members.
-a={ yes | no }, --notifyadmin={ yes | no }
Specifies whether the admin should be notified for each subscription or unsubscription. If you're adding a lot of addresses, you
definitely want to turn this off! With -a=yes or -a, the admin is notified. With -a=no, the admin is not notified. With no -a
option, the default for the list is used.
-f=filename, --file=filename
This option is required. It specifies the flat file to synchronize against. Email addresses must appear one per line. If filename
is `-' then stdin is used.
-h, --help
Print a small help text and exit.
listname specifies the list to synchronize.
AUTHOR
Author of Mailman is the Mailman Cabal, see http://www.list.org/ for information. This manpage is written by Tollef Fog Heen
<tfheen@debian.org> for Debian, but may be used by others.
SEE ALSO
Mailman documentation on http://www.list.org/ and in /usr/share/doc/mailman.
2007-07-14 SYNC_MEMBERS(8)