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
whom(1mh) whom(1mh)
Name
whom - report to whom a message is addressed
Syntax
whom [ options ] [ file ]
Description
The command is used to expand the headers of a message into a set of addresses, and optionally to verify that those addresses are deliver-
able at that time if -check is given.
The command is often invoked as one of the options offered by the program when you have finished editing a draft message. See for more
details.
If you want to run on a named file, you can supply a file argument. This argument allows you to specify a named file; if you want to run
on an existing message, use the -draftfolder and -draftmessage options. If you do not give an absolute pathname (one beginning with a / or
./ or ../ ), assumes that the named file is in your current working directory.
Options
-alias aliasfile
Specifies the alias file to be consulted by If you have used one or more aliases in your message header, will consult the named
file to find those aliases, and will print the full addresses as its output. You can reference more than one file, but each file
name must be preceded by the word -alias. See for more information.
-check
-nocheck Checks that the addresses are valid. makes no guarantees that the addresses listed as being correct are really deliverable:
rather, an address being listed as correct means that at the time that was run, the address was thought to be deliverable by the
transport service. For local addresses, this means that the local user does exist, and that the address was deliverable at the
time of checking. For network and uucp addresses, it means that the syntax of the address is valid.
-draft Sets the draft message to be the standard file in your Mail directory.
-draftfolder folder
-nodraftfolder
Specifies the folder in which searches for the draft message. The default is to use the current message in the named folder.
You can select another message by using the -draftmessage option. For more information on using a draft folder, see The -draft-
folder option is often set up in your user profile; see for more information.
-draftmessage msg
Specifies the draft message to be used. If you specify a folder with the -draftfolder option, the -draftmessage option takes the
number of a message in that folder. If you do not specify a folder, -draftmessage takes the name of a file. If you do not give
an absolute pathname (one beginning with a / or ./ or ../ ), -draftmessage assumes that the file is located in your Mail direc-
tory.
-help Prints a list of the valid options to this command.
-mts smtp Specifies the format of the addresses to be checked. The only value allowed is smtp, which checks that addresses are deliverable
over the standard ULTRIX mail system. Additional values are supported only for use with other mail systems.
The defaults for this command are:
file defaults to
-nocheck
-alias /usr/lib/mh/MailAliases
-mts smtp
Restrictions
For this version, the -mts option only supports the value smtp. Additional values are supported for use only with other mail systems.
Examples
In the following example, would use the current message in the folder:
% whom -draftfolder +drafts
smith: address OK
In the next example, searches for message 2 in the folder
% whom -draftfolder +drafts -draftmessage 2
davis@hostname: address OK
Profile Components
Path: To determine your MH directory (mh-dir)
Draft-Folder: To find the default draft-folder
postproc: Program to post the message
Files
The user profile.
See Also
comp(1mh), mh-alias(5mh), post(8mh)
whom(1mh)