hi
I am writing a bash script that uses dialog to get user input an diplay messages to user. I have a small problem
dialog --inputbox "blabla" 20 50 2> /tmp/output
VAR="'cat /tmp/output'"
mkdir $VAR
the code below requests user for a directory path to be created.
But, if the user uses... (1 Reply)
I'm having problems with bash scripts. If a bash script is called with no arguments, I always get "PHIST=!" as the first argument (i.e. this is what $1 equals). Why? Where does this come from, and how can I fix it? Nothing in the bash man pages refer to this mysterious default argument. (2 Replies)
I have written a script and I get error and I don't understand why.
neededParameters=2
numOfParameters=0
correctNum=0
while getopts "s:l:" opt
do
case "$opt" in
s)
serviceName= $OPTARG #errorline 1
numOfParameters= $numOfParameters + 1
;;
l)
... (12 Replies)
I am using variable to give the location of the file I am using but I get error.
Here is the code:
LogFile=/tmp/log.email
echo -e "could not close the service - error number $error \n" > $LogFile
well this is not all the code but is enough because the problem start when I try to use the... (3 Replies)
hi to everyone :)
i am new to linux and bash and i am trying to build a bash script, that is quite similar to the well known cmd 'split' ... ;)
it is now already "working" ... i can use it like:
./splitfix.sh -v -s 10 foo
./splitfix.sh -s 10 -v foo
./splitfix.sh -s 10 foo
./splitfix.sh -v... (5 Replies)
When it comes to programing and UNIX, I know just enough to be really really dangerous.
I have written a python script to parse through a file that contains ~1 million lines. Depending on whether a certain string is matched, the line is copied into a particular file. For the sake of brevity,... (4 Replies)
Hi,
Below is my bash script:
cat run_all.sh
if && ; then
Number_Count_Program $1.results $2.results > $1.$2.counts
else
Number_Split_Program $1.results $2.results > $1.$2.split
fi
After I run the following command:
./run_all.sh A B
./run_all.sh: line 1:
Anybody advice to edit... (5 Replies)
Hi,
I have 100 files containing different values in single column,
I want to split those files in two separate files (file2 and file3) based on average value of first column of each file,
for those files I am working on the following script
#bin/bash
for memb in $(seq 1 100)
do
awk... (4 Replies)
I am trying to write a Bash Script using a couple of arrays. I need to perform a countdown of sorts on an array done once daily, but each day would start with the numbers from the previous day. This is what I'm starting with :
#!/bin/bash
days=(9 8 7 6 5)
for (( i = 0 ; i < ${#days} ; i++... (4 Replies)
Discussion started by: cogiz
4 Replies
LEARN ABOUT DEBIAN
maildirkw
MAILDIRKW(1) Double Precision, Inc. MAILDIRKW(1)NAME
maildirkw - set maildir message keywords
SYNOPSIS
maildirkw [-c] [-l] [-a] [-r] {maildir} {message} [keyword...]
maildirkw [-c] {-L} {maildir}
DESCRIPTION
maildirkw modifies the Courier IMAP server compatible maildir message keywords. This command allows an easy way to set or clear custom IMAP
keywords associated with a particular message. maildir is the pathname to a maildir, or a maildir folder. The -L option lists all messages
in the maildir, and their associated keywords. message specified which message's keywords should be set. One or more keywords specifies a
list of keywords to be set for this message. The specified list of keywords replaces any keywords presently set for the message, unless the
-a or the -r option is specified.
The -a option adds the keyword to existing keywords that are set for message. The -r removes keywords from message, leaving any remaining
keywords set in place.
The -l should be used if the Courier IMAP server's configuration file has the IMAP_USELOCKS option set. -l enables a compatible locking
mechanism to update the message's keywords.
-c enables case-sensitive keywords. IMAP keywords are normally case insensitive. -c needs to be used if the SMAP1[1] protocol extension is
used, which uses case sensitive keywords.
SEE ALSO maildiracl(1)[2], maildirmake(1)[3].
AUTHOR
Sam Varshavchik
Author
NOTES
1. SMAP1
http://www.courier-mta.org/cone/smap1.html
2. maildiracl(1)
[set $man.base.url.for.relative.links]/maildiracl.html
3. maildirmake(1)
[set $man.base.url.for.relative.links]/maildirmake.html
Courier Mail Server 08/31/2011 MAILDIRKW(1)