10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Please forgive me if this is too stupid a question as I am fairly new to scripting.
I have an alias in my .profile (ksh) like this:
alias ff='find . -name $1'
The idea is to find all files in current dir and all subdir with the name specified in the param passed. So, I issue the command:... (8 Replies)
Discussion started by: sssccc
8 Replies
2. Red Hat
hi,
we have eth1; in the beginning it was proposed to create from eth1, eth1.2500 and eth1.240. It did not worked cause vlan 1.2500 was not tagged in the switch.
so they decided to leave eth1 like a physical interface with eth1.2500 config (removel vlan tag) and create eth1.240
but it did... (0 Replies)
Discussion started by: pabloli150
0 Replies
3. Shell Programming and Scripting
Hi to all,
I'm facing some problems when adding an alias like:
#alias list="ls -al | awk '{ print $1, $2, $3, $4, (($5/1048576))"\t", $6, $7, $8, $9 }'"
and when I enter:
#list
I get:
Syntax Error The source line is 1.
The error context is
{ print >>> , <<<
awk:... (3 Replies)
Discussion started by: enux
3 Replies
4. OS X (Apple)
Hi-
I am newish to the mac osx unix interface. I want to set up top so that it always displays the username. I can use this command to do this:
top -ocpu -P ' PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE USER' -p '$aaaa ^bbbbbbbbb $cccc $wwwwwww $ee... (1 Reply)
Discussion started by: mikey11415
1 Replies
5. Shell Programming and Scripting
okay how do i make an alias that has a space in it?
for most of my other ones i've simply done within my ~/.bash_profile
alias `ls`='ls -laF'
but with
alias `sudo su`='sh hello.sh'
I'm unable to make it work
in addition i was wondering how i could allow the user to type in... (1 Reply)
Discussion started by: cleansing_flame
1 Replies
6. UNIX for Dummies Questions & Answers
i'm trying to get the alias
alias "sudo su"=`sh script.sh`
whats wrong with this and how can i make an alias that has a space in it (1 Reply)
Discussion started by: cleansing_flame
1 Replies
7. UNIX for Dummies Questions & Answers
Hi
Is there anyway to alias the sending mail address.
At the moment I have something like below
oracle@devora.db.uk1.inspiredbroadcast.net
and I want to do this
Legion DW - BIDB.D
Is this possible? Also I am trying to attach a file to the mail and have not been successful. Below... (2 Replies)
Discussion started by: colesga
2 Replies
8. UNIX for Dummies Questions & Answers
How can I get two commands in one alias?
In my exaple it only display the current date.
alias two='cal | date' (5 Replies)
Discussion started by: Mattiax
5 Replies
9. UNIX for Dummies Questions & Answers
I am trying to configure sendmail to forward email to a PHP script. I don't know UNIX and am having trouble figuring out how to forward the mail. I think this is just a bunch of basic questions, but I have had little luck getting help elsewhere on my specific questions and it's driving me nuts. You... (3 Replies)
Discussion started by: bitt3n
3 Replies
10. UNIX for Dummies Questions & Answers
When I try to use the CLI mail, I get the following error. What's wrong?
Welcome to Darwin!
% mail root
Subject: test
test
.
EOT
% /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory
Do I just need to change the... (1 Reply)
Discussion started by: chenly
1 Replies
smtp(n) smtp client smtp(n)
NAME
smtp - Client-side tcl implementation of the smtp protocol
SYNOPSIS
package require Tcl
package require mime ?1.3.2?
package require smtp ?1.3.2?
::smtp::sendmessage token option...
DESCRIPTION
The smtp library package provides the client side of the smtp protocol.
::smtp::sendmessage token option...
This command sends the MIME part (see package mime) represented by token to an SMTP server. options is a list of options and their
associated values. The recognized options are:
-servers
A list of SMTP servers. The default is localhost.
-ports A list of SMTP ports. The default is 25.
-queue Indicates that the SMTP server should be asked to queue the message for later processing. A boolean value.
-atleastone
Indicates that the SMTP server must find at least one recipient acceptable for the message to be sent. A boolean value.
-originator
A string containing an 822-style address specification. If present the header isn't examined for an originator address.
-recipients
A string containing one or more 822-style address specifications. If present the header isn't examined for recipient
addresses). If the string contains more than one address they will be separated by commas.
-header
A list of keywords and their values (may occur zero or more times).
If the -originator option is not present, the originator address is taken from From (or Resent-From); similarly, if the -recipients option
is not present, recipient addresses are taken from To, cc, and Bcc (or Resent-To, and so on). Note that the header key/values supplied by
the -header option (not those present in the MIME part) are consulted. Regardless, header key/values are added to the outgoing message as
necessary to ensure that a valid 822-style message is sent.
The command returns a list indicating which recipients were unacceptable to the SMTP server. Each element of the list is another list, con-
taining the address, an SMTP error code, and a textual diagnostic. Depending on the -atleastone option and the intended recipients, a non-
empty list may still indicate that the message was accepted by the server.
SEE ALSO
mime, pop3, ftp, http
KEYWORDS
mail, mail, email, smtp, mime, rfc821, rfc822, internet, net
mime 1.3.2 smtp(n)