09-11-2019
What exactly do you want to achieve that above doesn't deliver? What problems do you run into? Errors? Messages?
10 More Discussions You Might Find Interesting
1. Programming
Hi friends
my C code is
int main()
{
system("cp <source> <destination>");
}
my question is
how to set variables for <source> and <destination>
how can we pass it to system() call.
can you suggest me
thankyou
kingskar (6 Replies)
Discussion started by: kingskar
6 Replies
2. Infrastructure Monitoring
Hello,
I have a problem with package and name space.
require "/Mehran/DSGateEngineLib/general.pl";
use strict;
sub System_Status_Main_Service_Status_Intrusion_Prevention
{
my %idpstatus;
my @result;
&General_ReadHash("/var/dsg/idp/settings",\%idpstatus);
#print... (4 Replies)
Discussion started by: Zaxon
4 Replies
3. Shell Programming and Scripting
Hello, I was wondering if it were possible to call arguments passed to a script using a variable.
For example:
sh script.sh yes no good bad
x=$#
while
do
echo (last argument, then second last etc until first argument)
let x=($x-1)
done
should print out
bad
good
no (4 Replies)
Discussion started by: VanK
4 Replies
4. Shell Programming and Scripting
Hi,
I've a logging function in bourne shell, flog() which logs the first argument passed to it. How can I pass arguments to this function from a file, like
cat filename | sed '...filtering...' | flog
or
cat filename | sed '...filtering...' | xargs flog
Which did not work, after which... (3 Replies)
Discussion started by: Random_Net
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I'm trying to understand the arguments from this system call, can someone help me figure it out?
write(1, "/home/nick/11sp/fred\n", 27/home/nick/11sp/fred) = 27
for argument 1, i know it is a file descriptor which specifies standard output. Argument 2, i believe is "what is to be... (4 Replies)
Discussion started by: l flipboi l
4 Replies
6. Shell Programming and Scripting
I have trouble getting this logic to work
#!/bin/bash
function assign_var(){
while
do
read -p "$2 :" $3
done
}
assign_var '$IPADDRESS' ipaddress IPADDRESS
Basicly, i want to make sure that entry is made (i can add more sophisticated checks later), but the idea is to recycle... (11 Replies)
Discussion started by: serverchief
11 Replies
7. Shell Programming and Scripting
Below is my script that is function properly per my conditions but I am facing one problem here that is when one function fails then Iy should not check other functions but it calls the other function too So anyone can help me how could i achieve this?
iNOUT i AM GIVING TO THE... (1 Reply)
Discussion started by: rohit22hamirpur
1 Replies
8. Shell Programming and Scripting
This command successfully gives me the clearcase views I want in stdout, one line per view name. Each view name appears to have no spaces.
cleartool lsview | grep -i `uname -n` | grep -v "ViewStorage\\|vgr_tools_sv" | cut -f 3 -d ' '
How can write a cygwin bash "for" loop that will iterate... (4 Replies)
Discussion started by: siegfried
4 Replies
9. Shell Programming and Scripting
I need to call a function within a code with $database and $ service as the arguments How do I proceed ? and how would a function be defined and these two arguments would be used inside the function?
calc_pref_avail $database $service
Best regards,
Vishal (7 Replies)
Discussion started by: Vishal_dba
7 Replies
10. Shell Programming and Scripting
Dear All,
I want to know how can i call oracle function from shell script code . My oracle function have around 5 input parameters and one return value.
for name in *.csv;
do
echo "connecting to DB and start processing '$name' file at "
echo "csv file name=$x"
sqlplus -s scoot/tiger <!... (2 Replies)
Discussion started by: Balraj
2 Replies
LEARN ABOUT X11R4
deliver
DELIVER(8) System Manager's Manual DELIVER(8)
*
NAME
deliver - deliver mail to an IMAP mailbox
SYNOPSIS
deliver [ -C config-file ] [ -d ] [ -r address ]
[ -f address ] [ -m mailbox ] [ -a auth-id ]
[ -q ] [ userid ]...
deliver [ -C config-file ] -l
DESCRIPTION
Deliver reads a message from the standard input and delivers it to one or more IMAP mailboxes.
Deliver reads its configuration options out of the imapd.conf(5) file unless specified otherwise by -C.
OPTIONS
-C config-file
Read configuration options from config-file.
-d Ignored for compatability with /bin/mail.
-r address
Insert a Return-Path: header containing address
-f address
Insert a Return-Path: header containing address
-m mailbox
Deliver to mailbox. If any userids are specified, attempts to deliver to user.userid.mailbox for each userid. If the ACL on any
such mailbox does not grant the sender the "p" right or if -m is not specified, then delivers to the INBOX for the userid, regard-
less of the ACL on the INBOX.
If no userids are specified, attempts to deliver to mailbox. If the ACL on mailbox does not grant the sender the "p" right, the
delivery fails.
-a auth-id
Specify the authorization id of the sender. Defaults to "anonymous".
-q Deliver message even when receiving mailbox is over quota.
-l Accept messages using the LMTP protocol.
NOTES
Depending on the setting of reject8bit in imapd.conf(5), deliver either rejects/accepts messages with 8-bit-set characters in the headers.
If we accept messages with 8-bit-set characters in the headers, then depending on the setting of munge8bit, these characters are either
left un-touched or changed to `X'. This is because such characters can't be interpreted since the character set is not known, although
some communities not well-served by US-ASCII assume that those characters can be used to represent characters not present in US-ASCII.
A method for encoding 8-bit-set characters is provided by RFC 2047.
FILES
/etc/imapd.conf
SEE ALSO
lmtpd(8)
CMU
Project Cyrus DELIVER(8)