Learning the Mac OS X Terminal, Part 2
Pages: 1, 2
Mail user agents (MUAs) are the kinds of applications that allow you to personally send, receive, and otherwise work with your email messages. Outlook, Eudora, and Mac OS X's Mail application are other familiar examples of MUAs.
Mail transfer agents (MTAs), on the other hand, are the not-so-familiar applications that receive the messages from the MUA and pass them on to other users on the same machine, or to MTAs on other machines for ultimate delivery to users elsewhere. The sendmail MTA included with OS X is one of the most popular, used on servers large and small across the Internet.
Since you are not running your own mail server at this point, you don't need sendmail to be running at all times. Instead, you only need to ensure that sendmail launches when invoked by mail to send the cron reports. Used this way, sendmail quits itself once delivery is made.
For sendmail to successfully launch, however, one issue needs to be "fixed" on your system. As a security measure, sendmail will not run with OS X's default permissions (termed "privileges" in the Finder), namely those for the root directory.
This fix involves one simple change: eliminating write privileges for the group assigned to the root directory. The CLI makes it very easy to view and change the various permission settings for any item, but the procedures are still too involved to detail here. (Of course, Mac OS X: The Missing Manual does include an in-depth look at permissions and the CLI.)
Instead, I'll zero in on the single command line required to get sendmail going:
sudo chmod g-w /
Since you're modifying the settings for a root-owned directory, the command line starts with sudo. Next comes the chmod command, for "change (file) modes." File modes are the settings that specify whether an item can be read or written to, for example, and by which kind of user -- the owner of the item, its group, or any user of the machine. (These settings correspond, of course, with the Privileges settings that are accessible via Finder's Inspector.)
Following a space are chmod's "arguments," the first of which specifies the modes to be changed (option flags are just another kind of argument, by the way). This argument says to take the group ("g") and remove ("-") its permission to write ("w") to the file or directory specified in the next argument (again followed by a space), which in this case is the root directory, ("/").
Your next step, then, is to run the command line:
[localhost:~] chris% sudo chmod g-w /
Once you do, sendmail should work fine. However, you should know that Mac OS X upgrade installers and some application installers change the root directory back to group-writable, so you'll need to run the chmod command line whenever this happens.
To test everything so far, try sending mail from the CLI. Use the mail command to send mail to root (which, at this point, will get forwarded on to you) like this:
[localhost:~] chris% mail root
Subject:
You're now working inside the mail CLI application, so you'll see no more tcsh shell prompts until you exit mail. Enter any subject you would like and press return. Type in your message at the cursor. To end your message, send it, and exit mail, press return, type a period, and press return again. You'll then return to your shell prompt:

After a few moments, check your mail by entering the mail command again, but this time with no arguments. Until the message arrives, you'll only see that your box is empty when you run mail:
[localhost:~] chris% mail
No mail for chris
However, once it arrives you'll see something like this:
[[localhost:~] chris% mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/chris": 1 message 1 new
>N 1 chris Sat Jan 5 15:30 13/374 "Test"
&
You're back in the mail application, but this time to view your new message. Press return at the "&" prompt to have a look:
Message 1:
From chris Sat Jan 5 15:30:01 2002
Date: Sat, 5 Jan 2002 15:30:00 -0800 (PST)
From: Chris Stone <chris>
To: root
Subject: Test
This is only a test.
& q
Saved 1 message in mbox
[localhost:~] chris%
As you can see, the test message stays in your local Unix mailbox when you quit mail. Note that this and any other messages there will disappear as a result of the following procedure. However, if this tutorial is new to you, it's very unlikely that you have other messages there anyway. (Of course, your POP and IMAP mail will stay safe and sound.)
You're now ready to set up your GUI Mail application so it can access your local Unix mailbox. Since you will be modifying the folder in which Mail stores its mail, ~/Library/Mail, you should first make a backup of it to, say, your Documents folder:
[localhost:~] chris% cp -R Library/Mail/ Documents/Mail
Here are some important points about this command line:
- Because you are copying a directory,
cprequires you to use its-Roption flag (for "recursive"). - The pathnames are not absolute, but "relative" to your working directory. Instead of including the entire pathname from the root directory down, with relative pathnames you can specify a shorter path that begins from the end of your working directory. (Always remember to omit a leading
/in relative pathnames.) - The target pathname,
Documents/Mail, doesn't specify the directory in which you would likeLibrary/Mail/to go, but the desired new relative pathname of the copied directory. - If this command line could talk, then, it would be telling the shell, "Please make a copy, including all contents, of the directory indicated by the first pathname. When you're done, the pathname of the new directory is to be the same as this line's second pathname."
Something else you should know about cp is that it does not properly copy files with resource forks, so you should never use it for that. You'll never have a problem copying Unix and Cocoa applications and related files, which don't contain resource forks, but if you are unsure, use the Finder to copy (or have a look at Mac OS X: The Missing Manual for an explanation of using CpMac, which does handle resource forks reliably).
The next step is to make the directory that Mail requires before it can create a Unix mail account. The directory must exist in ~/Library/Mail/ and be named "UNIX:@". To create a directory from the command line, use the mkdir command, followed by a space and the name of the new directory.
However, if there is no Mail directory already inside ~/Library, the command will return an error. To prevent this possibility, use mkdir's -p option flag, which will create any intermediate directories for you if they are missing.
[localhost:~] chris% mkdir -p Library/Mail/UNIX:@
Next you'll need to open Mail and create a Unix mail account, which requires just a few simple steps:
- Open the Mail application, found in
/Applications.
Sure, you can just double-click its icon to open it in the Finder, but since you're in Terminal anyway, how about opening it from there? To do so, just use the
opencommand (don't forget to include the normally-hidden extension at the end):[localhost:~] chris% open /Applications/Mail.appMail launches immediately, just as if you had opened it from the Finder.
If you've never used Mail before and have no email account info entered in your System Preferences, you'll be prompted to set up an initial account. At a minimum, you'll need to enter an email address, so enter anything you would like; it won't affect the setup of your Unix mail account.
You can safely click through the other prompts for server and other info, and to import mail from other applications. None of this is needed for the task at hand.
- Create a new Unix mail account.
From Mail's Mail menu, select Preferences, and then click the Accounts icon. In the Accounts pane, click Create Account. To configure the account, you'll at least need to select the account type (Unix Account), enter a description (Local), and enter something -- anything, really -- in the SMTP Host field.
Of course, if you need to set up a bona fide Unix account, all of these fields mean a great deal. However, for the purpose of only accessing your local Unix mail, this is all you need to configure:

- Click OK, close the Preferences window, and you're all set.
If you are already using Mail to check your regular POP and IMAP accounts, this additional account will not affect those in any way, except that new mail from your Unix account will show up in your default inbox. Of course, if you would like, you could create a new mailbox and a rule to have the incoming
cronreports be placed there instead.
Now that everything's in place, you can perform a test. Send a new mail message to root:
[localhost:~] chris% mail root
Subject: Test 2
This is only a test, again.
.
EOT
[localhost:~] chris%
Switch to Mail, and then click Get Mail until you see the message has arrived in your Inbox:
If you see the test message in your inbox, then you're done. The next time cron runs one of the maintenance jobs, you'll see the report in your inbox as well. For example, the daily cron job report will look something like this:
Now that these regular reports will be coming in, you'll probably want to be able to understand them. In Part 3, you'll get a closer look at the scripts themselves to learn how to read the reports they generate.
Also in Part 3, I'll show how a Macintosh with a persistent Internet connection can send its reports to any email address. Until then, keep checking to see that you're receiving the reports as expected, and always feel free to submit your comments or questions to our TalkBack section.
I'd like to thank Scott Gever for his techincal help with this series.
Chris Stone is a Senior Macintosh Systems Administrator for O'Reilly, coauthor of Mac OS X in a Nutshell and contributing author to Mac OS X: The Missing Manual, which provides over 40 pages about the Mac OS X Terminal.
Return to the Mac DevCenter.
You must be logged in to the O'Reilly Network to post a talkback.
Showing messages 1 through 104 of 104.
-
Cd ~root problem
2005-01-13 21:10:22 ZombieJunkie [Reply | View]
hi, I'm having a problem with the cd ~root command. I don't seem to have permission. I tried the su command but after I enter my password it says su:Sorry and nothing changes, I still can't access it, and I know I'm typing my password right. :p
Please help.
P.S. got my first mac, trying to foget all that useless windows mumbo-jumbo. -
Cd ~root problem
2005-02-13 15:44:08 DrBi0TecH [Reply | View]
yup,
i coudn´t enter the root directory either.
so i modified the file from outside:
sudo pico /var/root/.forward
but don't bother... it seems like this whole 2nd part (of this great tutorial) doesn' work anymire with the latest mac os x versions.
i couldn't do anything to get mails using the "mail" command. (No mail for **user**)
-
cron
2004-09-02 11:20:59 zako [Reply | View]
I have followed the steps specified in Part 1 and changed the times cron executes.
Question: If I want to VIEW the reports generated WITHOUT having sent to me via e-mail, where do I find the files?
Thanks -
cron
2004-09-02 11:56:31 Chris Stone |
[Reply | View]
As mentioned in the article, the cron job sends output to files in /var/log: daily.out, weekly.out, and monthly.out.
--Chris
-
Mail.app can no longer be used to read local mail
2003-11-10 11:44:49 anonymous2 [Reply | View]
It looks like it can't do it since way back in 10.2:
http://docs.info.apple.com/article.html?artnum=107110
-
sudo chmod
2003-10-10 20:47:45 anonymous2 [Reply | View]
Hello
I was doing the tutorial when I arrived at the
point were it said to write
sudo chmod g-w /
this didn't work apparently because I couldn't receive mail.
So being a curious rather reckless learner with nothing to lose I tried various other things. I eventualy (not knowing what I was doing albeit I now do) I tried various variations on the above command.
Then I wrote:
sudo chmod -g-w /
Yes I know it wasn't smart but i'm reckless, so the computer decided that if no one was to have privleges I should be seeing the desktop at all, so the screen went blue and I was forced to reboot in os 9 on my second partition.
Now i obviously can't reboot in os 10 because once it loads it cant login in as a user (neither my account nor the roots because all privileges were erased).
I would like to know if there is a way to regain control over my partition or recuperate the data while in my os 9 partition without using data recovery software?
Thank you
Severin Smith -
sudo chmod
2004-03-27 21:28:36 rcrow [Reply | View]
the only thing i can think of is a cold boot. If you have the OS X installation cd, insert the it and type command C. This tells the computer to boot directly off the cd. I dont know if you can retrieve your files from before the crash this way though. If you cant you can eject the cd and no harm done as long as you dont reinstall.
-
terminal-trouble?
2003-06-23 12:16:01 anonymous2 [Reply | View]
I am now entering the dark and mysterious path of the Terminal for the first time.
I tried follow the guide and do some changes in the crontab but my terminal looks different even though I run the same commands. Here is how my terminal looks:
# /etc/crontab
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute hour mday month wday who command
#
#*/5 * * * * root /usr/libexec/atrun
#
# Run daily/weekly/monthly jobs.
15 3 * * * root periodic daily
30 4 * * 6 root periodic weekly
30 5 1 * * root periodic monthly
In the guide it says something like root sh/etc/daily... instead of just 'periodic daily'. Why does it do that?
By the way, I'm using a Mac Os X (not a jaguar)
Barbara
-
Running a script through a login that doesn't have full administrative rights.
2003-05-15 11:59:28 anonymous2 [Reply | View]
I have a user that uses our G4 and I'd like to backup all files on it. Problem is I can't figure out how to have a script run that would backup all files if she's still logged on b/c she doesn't have access to all the folders. I was going to use cron to run an applescript to do this. Is there a way through the sudo command or do I have to log on as Administrator everytime to do something like this?
-
Jaguar version?
2003-01-16 02:42:24 anonymous2 [Reply | View]
Hi Chris,
Great articles, but when will the Jaguar version be available? I'm itching to do some cronning!
Thanks!
hughchal
-
Tutorial removes any privaleges for writing to "Macintosh HD"
2002-11-27 18:25:24 anonymous2 [Reply | View]
I think I have figured out a simpler way to fix the permissions issues resulting from the chmod command. I went to the "Computer" directory in the Finder, and got Info on the primary drive. (In your case, "Macintosh HD"). Go into the "Ownership and Permissions" tab and click on the padlock. The default should be
Owner System
Acess Read&Write
Group admin
Access Read&Write
others Read Ony
and click on
Apply to enclose items...
You will still get denied for lack of permissions when using the "cd ~root" command with 10.2. because the tutorial needs to be updated. I hear several success stories for 10.1.5 users.
I still love the articles. Very informative and I'm learning a lot.
-
Mail Out SYSERR: forward: no home
2002-11-07 17:01:25 anonymous2 [Reply | View]
Chris,
Thank you for the great articles on working with Sendmail.
I seem to have gotten past most config issues in getting Sendmail up and running, but when I actually try to send mail out from our box, I get this error in the system log and the mail log:
"SYSERR(root): forward: no home"
I am sure I have overlooked something in my set up of the box.
Thanks, any and all, for any suggestions on this.
Bubba
-
This article needs updating
2002-09-22 15:50:06 anonymous2 [Reply | View]
Just like the previous message you cannot 'cd ~root'. The permissions on the .forward file are read-only. On Jaguar 10.2.1, I don't think I'll continue with these 'exercises until it is updated. Too bad, it was starting to get fun.
-
This article isn't working, please help
2002-09-19 21:56:56 anonymous2 [Reply | View]
First the .forward file didn't work.
After using tail /var/log/mail.log I discovered this:
Sep 19 23:26:53 localhost sendmail[669]: g8K4Qri4000669: from=sean, size=44, class=0, nrcpts=1, msgid=<200209200426.g8K4Qri4000669@localhost>, relay=sean@localhost
Sep 19 23:26:53 localhost sendmail[669]: g8K4Qri4000669: to=root, ctladdr=sean (501/20), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30024, relay=localhost [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by localhost
It seems for some reason sendmail is being refused.
Then there's the problem with killing my privliges on the root directory (/). How do I get them back since sudo chmod g+w / doesn't work?
-
Accessing ~root
2002-09-18 21:16:51 anonymous2 [Reply | View]
I cannot get to the ~root
When I type cd ~root it says I don't have permission.
I have administrator privileges. I am using OSX 10.2 -
Accessing ~root
2003-05-20 16:41:14 anonymous2 [Reply | View]
i'm having the same problem, any solutions?? -
Accessing ~root
2003-05-20 16:58:14 anonymous2 [Reply | View]
Got it, all you have to do is type SU in the Terminal hit [enter] and then state your password. -
Accessing ~root
2003-05-20 17:03:11 Chris Stone |
[Reply | View]
Yes, that'll fix it. But from this error, it sounds like you're running 10.2, which has different permissions set for ~root than 10.1 (which this article was written for).
If you are using 10.2 or newer, you should not be following this tutorial, but these instead:
http://www.macdevcenter.com/pub/a/mac/2002/12/06/terminal_osx.html
http://www.macdevcenter.com/pub/a/mac/2003/01/24/terminal_osx.html
http://www.macdevcenter.com/pub/a/mac/2003/03/21/terminal_osx.html
Hope that helps...
--Chris
-
Always open sendmail
2002-09-17 01:31:13 heik [Reply | View]
I just changed "MAILSERVER=-NO-" to "MAILSERVER=-YES-" in /etc/hostconfig, and now sendmail works again under Jaguar. But its always working. So if I do a top command in terminal I always see a Sendmail Task. Is this correct ? During the article O'reily describes, that Sendmail do not have to run always... any Ideas ??
-
It works!
2002-09-06 18:21:04 orene [Reply | View]
Finally, I did it. I used the modification for OS X 10.1.5 and it works. Thank you all! Nice cooperation.
-
Just not getting it to work...
2002-08-26 09:12:45 oliverspapa [Reply | View]
I have gone through this article a dozen (literally) times and all of the suggestions in this discussion and *still* cannot get the .shtml to work properly.
If I target it specifically, it works, so I know that it is able to process SSI (correct?). The problem is, when I swap out the .html with the modified .shtml, I get the default Apache page with the "Not seeing the page you expected..." message.
What gives? I have dumped my cache (it is set to never cache and has 0MB assigned to the file). I have stopped and started Apache. I have made sure that I was adding 'Include' to the proper directory. I even went in to DirectoryIndex and added 'index.shtml' before 'index.html'! I really do not know where to go from here.
I have gone so far as to try editing the ...conf.default page; add 'Includes' to my user file; and any other outside option I ran across. I know this should not be as difficult as it is, but for whatever reason it is.
I am brand new to doing any of this, but what could I be missing? I even tested the .conf for errors and got the 'Syntax ok' approval.
Please offer any suggestion you may have. I will greatly and definitely appreciate them.
Regards,
Craig
-
send output?
2002-08-23 11:43:59 wessongroup@megapathdsl.net [Reply | View]
So far going great, but got stumped on the instruction "send its output and any of its error messages on to the next command."
tee /var/log/daily.out
sh /etc/daily command kicks out a bunch, but don't SEE how to send it some place
Thanks for any help, new to CLI big time
-
no mail to root
2002-08-15 22:04:19 monica1 [Reply | View]
I've got the same problem. Can't receive mail. Tried to walk thru the steps described in the article over and over again. Still no mail.
-
can't get local mail running
2002-07-15 12:31:27 rhoefer [Reply | View]
I stepped to the tutorial but still receives no messages.
If I type mail "username", the subject and so on.....then I type mail only......and I get everytime the message: no message for "username".
I tried my username and all others. Nobody received emails.
PS: I have no ethernet connected.
-
cannot mail to root?
2002-07-11 07:05:22 mcfoh@jlworld.com [Reply | View]
Thanks for your excellent articles.
I ran into a problem. After changing the .forward step as in your article, I cannot receive the mail.
I tried mailing to my own user name and still no messages.
Please help.
-
I hit a wall with root mail
2002-06-24 11:22:11 orches [Reply | View]
Hey, I was doing fine with the article then I got this message:
[localhost:~root] orches% can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
What is this and how do I fix it?
-
Sendmail error
2002-06-19 07:37:38 talloyd [Reply | View]
I can't seem to get sendmail working, I get the following errors in the log:
Jun 19 09:22:49 localhost sendmail[593]: unable to qualify my own domain name (localhost) -- using short name
Jun 19 09:22:49 localhost sendmail[593]: NOQUEUE: SYSERR(tlloyd): can not chdir(/var/spool/clientmqueue/): Permission denied
Any idesa? -
Sendmail error
2002-06-20 17:23:32 jrperry [Reply | View]
I had the same problem and was able to resolve it with the help of the Sendmail.org folks.
See the Update to Learning the Mac OS X Terminal, Part 3 at:
http://www.macdevcenter.com/pub/a/mac/2002/06/07/sendmail_1015.html
be sure to read the comments I posted and the reply to my own post at:
http://www.oreillynet.com/cs/user/view/cs_msg/7744
Jack
-
sendmail errors
2002-04-29 08:57:26 xlabphil [Reply | View]
Hi, I followed everything in the (excellent) tutorial and it all worked fine, until a few days ago when it all stopped. I looked in the mail log and got this :
Apr 28 18:15:01 pc-00016 sendmail[654]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory
Apr 29 16:27:39 pc-00016 sendmail[760]: NOQUEUE: SYSERR(phil): /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory
I can't really make sense of this - can someone explain why these errors occur and how I can fix them?
-
Delay in receiving mail
2002-04-13 09:00:35 droob [Reply | View]
This is a great series of articles. Mail.app is receiving messages forwarded to root, and everything's happy, except:
It takes about five minutes for mail to appear after it's been sent from the command line. Is this normal?
-
Can't Send mail using sendmail
2002-04-09 19:25:35 maclaxguy [Reply | View]
I've set up sendmail thru a few tutorials i have found, but when sendmail starts up, it gives this error:
Apr 9 22:06:02 localhost sendmail[341]: My unqualified host name (localhost) unknown; sleeping for retry
Apr 9 22:07:02 localhost sendmail[341]: unable to qualify my own domain name (localhost) -- using short name
Apr 9 22:07:02 localhost sendmail[341]: gethostbyaddr(192.168.1.100) failed: 1
I have tried entering my dns in the /etc/hostconfig but this obviously didn't work. If anyone can help, that would be great. I've worked on this for _many_ hours, but just can't get it.
Thanks
-
how do I setup Mail.app to send from UNIX:@
2002-04-08 13:50:08 m31uw [Reply | View]
I have sendmail configured and working well for a little while now, I use SquirellMail (web app from sourceforge) to be able to send and recieve. I have the Unix account setup fine to recieve mail but I can't send mail from the local unix account it, Mail.app says:
This message could not be delivered and will remain in your Outbox until it can be delivered. The reason for the failure is: Can’t determine IP address of host: smtp.128kb.com..
I try to do this thew same way I would for any remote mail server by selecting IMAP or POP account and filling in the fields, and when the account is completed it puts everything in my home dir as a new message, recursively. SO everything under it as well and the Mail.app crashes (probably to much under my home dir)
How can I get Mail.app to work well with sending and recieving mail local mail?
-
Tutorial removes any privaleges for writing to "Macintosh HD"
2002-04-04 08:55:24 samf [Reply | View]
Is it just me who noticed that after carrying out this tutorial I could no longer move or remove files from the 'Macintosh HD' folder.
If I try to move an item to the folder now I get the following message:
The item "X" could not be moved because "Macintosh HD" cannot be modified.
I can also no longer remove items from this folder, the system only allows me to copy items from this folder?
Is this normal? It worries me as I cant remember not being able to modify this folder previously.
I know I can remove this problem using the command
sudo chmod g+w /
but this in turn would mean that the unix mail wouldnt work correctly (i presume)
Help anyone? -
Tutorial removes any privaleges for writing to "Macintosh HD"
2002-04-19 06:45:36 orene [Reply | View]
You're right. As soon as I noticed that root users lost write privilege, I stopped doing that exercice.
Did you have problem recovering your write privilege?
I must admit I don't see why I shoud lock my OS X partition just to read something in my mail client. After all what is sent to me via mail is already available in different files (daily.out, weekly.out or monthly.out) on my hard drive.
-
Tutorial removes any privaleges for writing to "Macintosh HD"
2002-04-25 12:32:03 jonadab [Reply | View]
> I must admit I don't see why I shoud lock my
> OS X partition just to read something in my
> mail client.
It's not reading the mail that's the issue; it's
sending it. sendmail has a wide assortment of
security issues (it is famous for this) and works
around them by requiring permissions to be set
in a restrictive fashion.
You can get around this by using something
besides sendmail to send mail. For example,
you could write a Perl script that talks to your
ISP's mail server and sends the mail using your
regular account, or you could install another
mail transfer agent, such as Exim or qmail.
Or you can read the rest of the tutorial and
see how to loosen sendmail's belt a little
and get it to send mail despite the insecure
privileges.
-
Mail.app doesn't work
2002-04-03 10:24:59 scottmack [Reply | View]
I don't see any mail in the Local account in Mail.app. It does work in the Terminal with the mail program.
I don't get any error messages about permissions, and I have read the posts about creating the UNIX:@ directory before creating the Local account.
Is there anything different in 10.1.3 (me) that could cause this?
A couple of other people have posted similar messages... has anyone come up with any ideas?
Thanks
Scott -
Mail.app doesn't work
2002-04-04 04:05:44 bioport [Reply | View]
I have the exact same problem. Mail.app just doesn't receive anything from the Local unix account.
>>Is there anything different in 10.1.3 (me) that could cause this?
I think so. At least it used to work on my mac and now it doesn't.
-
Mail.app doesn't work
2002-04-13 06:31:01 sfn [Reply | View]
It worked nicely for me then the April Security Update did something on one of my machines and I get an error message in the console like this:
2002-04-10 20:27:59.442 Mail[1586] *** mkstemp(/var/mail/sfn.lock.tmp.XXXXXX): Permission denied
2002-04-10 20:27:59.444 Mail[1586] Cannot fetch from read-only/locked spool file /var/mail/sfn
Permissions are:
drwxrwxr-x 3 root mail 58 Apr 10 21:31 .
drwxr-xr-x 19 root wheel 602 Apr 10 18:57 ..
-rwx------ 1 username mail 0 Apr 10 21:31 username
Anyone have an idea here?
-
Mail deleted by setting up Unix mail
2002-04-02 08:17:42 appleamb [Reply | View]
Hi,
Am really enjoying these articles and am looking forward to my "Missing Manual" arriving.
In Lesson 2, you stated;
"As you can see, the test message stays in your local Unix mailbox when you quit mail. Note that this and any other messages there will disappear as a result of the following procedure. "
By golly you were right! But, why? I had just completed part one, and got the redirect completed about 2 minutes before the daily cron script executed. I viewed the mail, then set up the mail access. No mail. I tested, as you suggested. Mail. What actually happened to those original files?
Thanks
J. Keith Putnam, Apple Ambassador
Huntsville Macintosh Users Group
14028 Astalot Drive
Huntsville, AL 35803-2464
http://www.hmug.org
appleamb [at] hmug [dot] org
-
Just won't work
2002-03-13 18:58:33 DouglasCWard [Reply | View]
This is a very good, informative article. Unfortunately, I just can't seem to get my Mail.app to receive the mail sent to root. I''ve been through the article five times now, and I'm just not geting it. I noticed that I can "view activity" when running "Get Mail". It shows my Mail.app checking my POP account, but it doesn't show that it is even checking my UNIX account? I've run the chmod command to change permissions, but prhaps sendmail still isn't running? Any clues?
-
syntax error...
2002-03-13 13:21:58 socokid [Reply | View]
This line:
[localhost:~] chris% cp -R Library/Mail/ Documents/Mail
Shouldn't have a space before "Documents", which it does in the article (about the middle). If you follow your code exactly, you will get a "No such file or directory".
Again, no biggie, just wanted to point it out.
Awesome though. I'm learning quite a bit.
Thank you! -
syntax error...
2002-03-23 15:04:30 Chris Stone |
[Reply | View]
Glad you liked thearticle. Actually though there is no error in this line. This line copies the directory in the first pathname argument "Library/Mail/" to the directory in the second, "Documents/Mail". These two arguments need to be separated with a space. Is it possible you don't have a "Documents" directory in you Home directory?
--Chris
-
mail relay
2002-03-10 12:31:45 sinebubble [Reply | View]
Great article, Chris. One question, however.
Instead of having mail delivered locally, I would prefer to have it sent to a different address. However, when I try to send to my mailserver, I get a relay deny because my Mac OS X box sets my host as "localhost".domain.com (regardles that I set i in sendmail.cf with Cwcytosine and I set relay accept on my mail server access.db). Typically I would get around this by using genericstable rewrites with M4, but this isn't Solaris and I'm not interested in recompiling sendmail or m4 on my box to get it to use dbm. Any ideas on a solution?
-
mail relay
2002-03-11 21:08:43 magill [Reply | View]
If you do not have a valid IP address with a reverse lookup, the hostname will default to "localhost."
If you are running via NAT (behind an Airport Base,for example), you need to change "HOSTNAME" in the /etc/hostconfig file to be
the FQDN.
If you are working with a "normal" DHCP setup from some ISP, the usual problem is that they have not provided a reverse-lookup for your assigned address. Cable modem folks, and the RBOCs as DSL providers have a nasty habit of ignoring the reverse lookup entries for their addresses and it causes all kinds of agriation as a result.
-
UNIX:@
2002-03-05 12:22:05 rtg [Reply | View]
I updated to 10.1.3 and it changed UNIX:@ to UNIX/@ which ultimately effected the sendmail process. Since the update any attempt to create UNIX:@ in the mail folder failed and resulted in a file named UNIX-@.
Has anyone experienced this since the update or is this related to another issue?
-
UNIX:@
2002-04-03 17:31:18 scottmack [Reply | View]
It seems that you _must_ create the UNIX:@ directory from the terminal. If you do it in the Finder it changes the ":" to a "-" as you describe.
If, however, you create it using the terminal and view the Library/Mail directory from there you can see that it does work. When you look at it in the Finder it displays as "UNIX/@".
PS I'm using 10.1.3; and while I can create the directory, Mail.app still won't collect my mail. What did the Finder display pre-10.1.3?
-
orphaned identity
2002-02-27 21:17:04 kiblinger [Reply | View]
When we set up our G4, we started out with 2 identities; we soon realized we din't need 2, so we deleted one of them (the "ck" identity we had created). Now there is a directory called "ck deleted" which "cannot be deleted," in the GUI, anyway.
So is there any reason not to assume root powers in the terminal and delete it from there? I.e., is it safe to delete that empty directory?
Thanks -- love the articles!
-
crontab command lines
2002-02-22 15:52:09 dskelso [Reply | View]
Chris-
Thanks for these great articles!
In my crontab, only the monthly command line has the instructions to mail. Can I edit in Pico the daily and weekly command lines to include these instructions?
Thanks, Duncan Kelso
-
library_mail directory?
2002-02-20 15:16:21 pippoppa [Reply | View]
I can't seem to use the cp -R Library/Mail Documents/Mail line. I get cp: Library/Mail: No such directory. Is something wrong or do I just need to create that directory? Thanks.
This is good stuff Chris.
-
anacron
2002-02-18 08:14:21 driftkop [Reply | View]
Hi,
By installing anacron (eg through Fink) your Mac doesn't have to be on all the time. Anacron will start the cron jobs that were supposed to run when your Mac was off.
great series!
- Koen.
-
Eudora instead of Mail.app?
2002-02-18 08:12:15 driftkop [Reply | View]
Hi,
I use Eudora instead of mail. Is it possible to read the cron jobs reports with Eudora?
- Koen.
-
cron jobs DO run if Mac is "sleeping"
2002-02-14 13:34:40 pnschatz [Reply | View]
at bedtime I set the Energy Saver Preference to put system and hard drive to sleep after 5 minutes. Under options, I check "Wake for network administartive access." Using your excellent directions, I find in the morning that the cron job has run. Now technically, the system was awake very briefly, but for all practical purposes, the cron job is running during a period when the computer is asleep. Is this a reasonable view? -
cron jobs DO run if Mac is "sleeping"
2002-02-20 16:34:23 Chris Stone |
[Reply | View]
Yep, you're right, but only with some machines, it looks like. It doesn't work for me on a Lombard, but does on a Gigabit G4. Thanks for that....
--Chris
-
can't make UNIX mailbox connect
2002-02-13 07:12:41 pablo2001 [Reply | View]
I get an unwritable path error
-
Spanish issue...
2002-02-12 01:28:27 joanba [Reply | View]
This is a great article !!! I've enjoyed every line.
Just a comment for non-english users, this is related to your article but it's a Mail.app issue.
When you create a UNIX account in Mail to receive the forwarded mail of root the default inbox is used. In spanish this inbox is called 'Bandeja de entrada' and is where I receive the usual mail ( POP3, IMAP ... ) but this is not valid for UNIX mail, which creates an INBOX folder, I've created a rule to put this mail in a 'System' folder and I've deleted the INBOX folder, it works but every time I receive UNIX mail the folder INBOX is created again and of course is always empty.
How can I change this settings ?
Best regards,
Joan
-
mail to root also saved as "mbox"?
2002-02-10 22:37:29 kiblinger [Reply | View]
After setting things up as described in your articles, all seems to work fine and mail to root is being directed to the right place, etc.
However, I noticed that one of the test mail messages I sent to root seems to have been *also* written as a file called "mbox" in my home directory. Just curious ...and of course, slightly worried that automated mail resulting from crontab et al will continue writing to disk there too, drowning me 4K at a time over the next 10 years....
Great article - can't wait for part 3 and more! -
mail to root also saved as "mbox"?
2002-02-11 15:56:40 Chris Stone |
[Reply | View]
The ~/mbox file is created only when you use the command-line mail utility and save any messages. So, unless you have a reason for doing that, you can safely delete that file.
Thanks, glad you're enjoying the articles!
--Chris
-
.forward stopped working
2002-02-10 04:01:50 plr [Reply | View]
Everything was working fine. Then
Thursday I noticed I was not seeing the daily report in my mailbox. Seems the .forward mechanism has stopped working. Mail goes to root but is no longer sent on.
Why might that be? -
.forward stopped working
2002-02-11 15:46:35 Chris Stone |
[Reply | View]
Have you run the OS X installer over your current installation by chance? This will revert root's .forward back to /dev/null.
In any case, have a look at it again with 'cat ~root/.forward' and make sure it's alright.
If that looks OK, you might find other clues in the log file generated by sendmail called "mail.log". The command "tail" is good for veiwing just the ends of potentially long log files like this.
By default, tail will show the last 10 lines of the file with this command:
tail /var/log/mail.log
To see more use the -n flag like this, where the number following the n equals the number of lines from the end of the file you would like displayed (in this case 100):
tail -n100 /var/log/mail.log
If you see something that might be fishy in there (or otherwise), feel free to post the output here, or email it to me.
By the way, how are you able to tell that root is getting the mail?
--Chris
-
.forward stopped working
2002-02-12 02:56:18 plr [Reply | View]
Chris,
I checked the .forward file. It's OK. The logs show this (daily is set to run at 18:30):
Feb 11 18:31:42 justine sendmail[1342]: gethostbyaddr(192.168.1.35) failed: 1
Feb 11 18:31:42 justine sendmail[1342]: g1BHVgc01342: forward /var/root/.forward.justine+: World writable directory
Feb 11 18:31:42 justine sendmail[1342]: g1BHVgc01342: forward /var/root/.forward+: World writable directory
Feb 11 18:31:42 justine sendmail[1342]: g1BHVgc01342: forward /var/root/.forward.justine: World writable directory
Feb 11 18:31:42 justine sendmail[1342]: g1BHVgc01342: forward /var/root/.forward: World writable directory
Feb 11 18:31:42 justine sendmail[1342]: g1BHVgc01342: from=root, size=324, class=0, nrcpts=1, msgid=<200202111731.g1BHVgc01342@justine>, relay=root@localhost
Feb 11 18:31:42 justine sendmail[1344]: g1BHVgc01342: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30324, dsn=2.0.0, stat=Sent
OK, there's a problem. But I don"t see which directory it's complaining about being world writable:
[justine:~] plr% ls -la /var/root/
total 32
drwxr-x--- 10 root wheel 296 Feb 10 11:49 .
drwxr-xr-x 19 root wheel 602 Feb 9 22:53 ..
-rw-r--r-- 1 root wheel 4 Jan 1 1970 .CFUserTextEncoding
drwx------ 7 root wheel 264 Jan 31 22:08 .Trash
-rw-r----- 1 root wheel 4 Feb 10 12:40 .forward
-rw------- 1 root wheel 1658 Dec 8 09:30 .nsmbrc
drwx------ 2 root wheel 264 Dec 19 19:38 Desktop
drwxr-xr-x 2 root wheel 264 Dec 21 19:06 Documents
drwxr-xr-x 5 root wheel 264 Jan 12 13:38 Library
-rw-r--r-- 1 root wheel 2136 Dec 23 15:57 retroclient.state
Does it make any sense to you?
I see root is getting the mail when I do sudo mail.
Thanks for an excellent series by the way. I'm looking forward to part 3.
--Paul -
.forward stopped working
2002-02-11 22:48:21 Scot Hacker |
[Reply | View]
Whoa! mail.log shows quite a bit of activity that isn't mine. For example:
Feb 10 09:46:23 gong sendmail[22631]: g1AHkLB22629: to=naphead2k@hotmail.com, ctladdr=www (70/70), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30583, relay=mx07.hotmail.com. [64.4.42.7], dsn=2.0.0, stat=Sent (Requested mail action okay, completed)
Are people (spammers?) using my box to relay mail? How do I prevent this? -
.forward stopped working
2002-04-25 12:47:21 jonadab [Reply | View]
> Are people using my box to relay mail?
I don't know enough about sendmail to say, but...
> How do I prevent this?
The easy and foolproof way is to make sure
sendmail doesn't run all the time and listen
on port 25, and that inetd isn't calling
sendmail for any incoming traffic on port
25. I believe this is the default. You can
test this by trying to telnet into port 25:
telnet localhost 25
If you get "Connection refused", then
it means the port isn't open, so nobody
should be able to send mail to or through
your system from the outside world (at
least, not via smtp).
If your system has been configured so
that sendmail is listening, the telnet
command above should give you a connection
and probably a 220 response. (You can use
the quit command to get back out to your
regular shell prompt.) In that case, you
definitely need to investigate this
further.
If you do need to be able to send mail to
or through your mac from the outside world,
then a more complicated solution is needed,
such as authentication.
-
Other mail clients
2002-02-09 19:19:40 Scot Hacker |
[Reply | View]
There is no "Unix" mail account option in Entourage's accounts panel. Is there a way to receive these emails with Entourage? -
Other mail clients
2002-02-11 16:04:00 Chris Stone |
[Reply | View]
I'll go into this in Part 3, but the answer is a qualified "yes". As long as you have a permanent Internet connection (or can be sure that you're online whenever cron sends a report) you can have the report sent to any mail address you like, including your regular POP or IMAP account that you check with Entourage.
Stay tuned for the details in Part 3...
--Chris
-
can't make UNIX mailbox work
2002-02-07 16:44:00 pablo2001 [Reply | View]
When I make the account the way you specify I get the message:
"Invalid Directory
The account path /Users/mysql/Library/Mail/UNIX:@ is not writable. Please change the Account Directory field in the Account Options tab to a writable directory" -
can't make UNIX mailbox work
2002-02-08 11:51:45 Chris Stone |
[Reply | View]
Looks like you have the same problem mknight did. Here's what worked for him:
My suggestion would be to first quit Mail.app. Then delete the UNIX:@ directory and create a new one with these commands from your account (not using sudo):
[localhost:~] mknight% rm -r Library/Mail/UNIX:@/
[localhost:~] mknight% mkdir Library/Mail/UNIX:@/
Then try setting up another local Unix account again.
For some reason, Mail.app will create its own and unusable Unix:@ *file* if a Unix:@ directory isn't yet there. This is why you need to make sure that directory exists *before* creating a local account in Mail.app.
Hope that helps!
--Chris
-
mail error
2002-01-31 06:41:46 rcasey [Reply | View]
When I send root mail, as explained in the article, I get the following error.
/etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory.
I am not sure what I've done wrong but if you can shed any light I'd appreciate it.
Bob Casey -
mail error
2002-01-31 08:58:31 Chris Stone |
[Reply | View]
Bob,
See the addendum in this Talkback section. If the command given there still doesn't work for you, try this one, which will set the permissions for every directory sendmail needs to be non-group writable:
sudo chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue /private
Thanks,
--Chris -
mail error
2002-03-02 11:37:27 ptruskier [Reply | View]
Chris -
FWIW, this is what FINALLY worked for me. I tried all the previous suggestions, including the modification of sendmail.cf, and still I kept getting the " /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: World writable directory" error.
-Peter
-
Strange behavor
2002-01-31 00:15:30 tjj [Reply | View]
Looking fwd to part 3!
I encountered two problems after initial permissions problems were solved: 1 running "mail" terminal informed me that "/var/mail/tjj" is a directory. I could access the /Documents/mbox file using "mail -f". Inside the "/var/mail/tjj" was dot, dot-dot and a file named msg.nSh (or something). After rm -r the tjj directory, mail performed as it should.
2 Now I'm able to send mail to root (from terminal) and this mail is fwd'ed and accessable thru Mail.app and the local Unix account. But is doen't show up in the Documents/mbox file..(mail -f) The cron output files sent (by root) to root *do*, however, show up here but apparently never reach whatever destination to be read by Mail.app. If I then (in terminal) copy the content into a new message and send this to root, it obediently turns up in the local Inbox (Mail.app), but not in the Documents/mbox file accessed thru mail -f-
Isn't that odd? -
Strange behavor
2002-01-31 08:50:39 Chris Stone |
[Reply | View]
>>Now I'm able to send mail to root (from terminal) and this mail is fwd'ed and accessable
>>thru Mail.app and the local Unix account. But is doen't show up in the Documents/mbox file..(mail -f)
This is normal. Mail.app moves the messages from the mbox to its own mail box.
>>The cron output files sent (by root) to root *do*, however, show up here but apparently never reach whatever destination to be read by Mail.app.
>>If I then (in terminal) copy the content into a new message and send this to root, it obediently turns up in the local Inbox (Mail.app),>> but not in the Documents/mbox file accessed thru mail -f-
Isn't that odd?
Hard to say what's going on here. But with this procedure, I reccomend you use *either* Mail.app or mail, but not both, since they might be stepping on each other here.
--Chris
-
small glitch in instructions
2002-01-30 07:27:12 jimlongo [Reply | View]
Great article . . . but I can't get past the beginning.
When I try the to navigate to root I get
[localhost:/] jimlongo% cd -root
Usage: cd [-plvn][-|<dir>].
[localhost:/] jimlongo%
Am I missing something?
Thanks -
small glitch in instructions
2002-01-30 10:38:13 jimlongo [Reply | View]
Sorry, I discovered that what looked like dashes (-) in omniweb were really meant to be tildes (~).
That fixed it, and again thanks.
Looking forward to article 3 so I can find out what to do about that pesky line . . .
/etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory
-
Exiting Pico
2002-01-30 07:15:38 jlamo [Reply | View]
Your article (and the pico program in Terminal)states that the command for exiting pico is Control + X. That doesn't work for me (G4 400, OSX 10.1.2). By fooling around, I discovered that it requires Control-Option + X.
Does that sound right? -
Exiting Pico
2002-02-09 19:27:44 Scot Hacker |
[Reply | View]
Ctrl+X works fine for me in 10.1.2
-
cant get sendmail working
2002-01-30 01:00:10 ccmccready [Reply | View]
I have been able to each step up to testing mail. Upon trying to send mail to the root I get an error like: "Can't create transcript file ./xfg0U8l2701990: Permission denied". Anyone have some ideas?
-Chris
-
cant get sendmail working
2002-01-30 17:25:40 Chris Stone |
[Reply | View]
Chris,
Obviously you have a permissions problem. Could you run this line and post or email me the results? This will show the permissions of the /var/spool/mqueue directory, which seems unable to be written to by sendmail:
[localhost:~] chris% ls -la /var/spool/mqueue
--Chris
chris@oreilly.com
-
quibble re 'cp -r A B'
2002-01-29 07:05:36 hayne [Reply | View]
In the article, the command:
cp -r Library/Mail/ Documents/Mail
is used to make a backup copy of the Mail directory. The author comments:
"The target pathname, Documents/Mail, doesn't specify the directory in which you would like Library/Mail/ to go, but the desired new relative pathname of the copied directory."
This is true only if the target directory (Documents/Mail) doesn't exist. If it did exist, for example if you were doing this backup copy operation a second time, then the target is in fact the place to which the copy will be put.
I.e. if A is a directory and there is no directory B, then cp -r A B makes a new copy of directory A and names it B. But if the directory B already exists, then cp -r A B makes a new copy of directory A and names the copy B/A (The copy is named A but is in the existing directory B )
So, starting from a situation where there is no directory named Documents/Mail, the result of doing the copy operation twice:
cp -r Library/Mail/ Documents/Mail
cp -r Library/Mail/ Documents/Mail
would be a directory Documents/Mail which would have a copy of Library/Mail, but which would also have a subdirectory Documents/Mail/Mail with a second copy.
A second quibbble is with the use of the "-r" option. It would be better to use the "-R" option (capital R). The man page for 'cp' says:
"Historic versions of the cp utility had a -r option. This implementation supports that option, however, its use is strongly discouraged, as it does not correctly copy special files, symbolic links or fifo's."
-
quibble re 'cp -r A B'
2002-01-29 09:33:46 Chris Stone |
[Reply | View]
Thanks, I'll be getting into the other behaviors of cp as they come up in future articles.
Your second point was a good one too. That one slipped by (I did get it right in Mac OS X: The Missing Manual :-) and will be fixed in the article. Just so no one gets worried though, in this particular case, it wouldn't be a problem for anyone who did use the lower case r.
--Chris
-
difference with .formard
2002-01-28 18:44:28 yvesde [Reply | View]
my user name is "yves", I have a POP mail account for wich my adress is "yvesde@mac.com".
When I do "mail yves", it works fine but when I "mail root", the message is forwarded to yvesde@mac.com so it won't work if I'm not connected. is there a workaround ? -
difference with .formard
2002-01-28 21:48:52 Chris Stone |
[Reply | View]
As you'll see in part 3, and figured out for yourself, putting your POP email address in root's .forward file *will* send mail to that address but only *if* you are online at the time sendmail tries to send the message. Otherwise, there's not a simple solution.
But to go back to the tutorial, putting your local account name ("yves") in root's .forward file (not your POP address) will direct the cron mail to your Mail.app inbox. -
difference with .formard
2002-02-09 19:44:04 Scot Hacker |
[Reply | View]
I put a POP address in .forward (since there doesn't appear to be a way to set up a unix account in Entourage) but it doesn't seem to be working - mail to root does not get forwarded to my POP box. I'm always online. Suggestions?
-
Couldn't get the mail app to receive local Unix mail
2002-01-28 17:31:08 mknight [Reply | View]
I tried the steps outlined in this tutorial, and everything worked perfectly save for the mail application being able to receive local unix mail.
I can send mail to root and it is redirected to my user account, but for some reason the GUI mail app doesn't pick it up.
One interesting thing I tried was editing the GUI mail app's "Local" account. When I try to save the changes I get an error message saying:
The account path /Users/mknight/Library/Mail/UNIX:@ is not writable.
Any advice for a long time Mac user but Unix newbie? -
Couldn't get the mail app to receive local Unix mail
2002-01-28 22:02:48 Chris Stone |
[Reply | View]
My suggestion would be to first quit Mail.app. Then delete the UNIX:@ directory and create a new one with these commands from your account (not using sudo):
[localhost:~] mknight% rm -r Library/Mail/UNIX:@/
[localhost:~] mknight% mkdir Library/Mail/UNIX:@/
Then try setting up another local Unix account again.
For some reason, Mail.app will create its own and unusable Unix:@ *file* if a Unix:@ directory isn't yet there. This is why you need to make sure that directory exists *before* creating a local account in Mail.app.
Hope that helps!
--Chris
-
Taming tcsh
2002-01-28 14:41:08 canyonrat [Reply | View]
Another great article.
I was having a problem with the shell wanting me to remember the case of everything until I stumbled on tcsh's enhanced mode. Put
set complete = enhance
in your .tcshrc file and a simple tab will fix the case for you.
-
Addendum
2002-01-25 16:58:37 Chris Stone |
[Reply | View]
sendmail actually requires several directories to be non-group writable. In most installs of OS X just changing the permissions for the root directory keeps sendmail happy.
However if you still get an error when sending mail from the CLI similar to this:
"cannot open /etc/mail/local-host-names: World writable directory "
Just chmod the these two directories like this:
[localhost:~] chris% sudo chmod g-w /private/etc /etc/mail
and sendmail will work for you.
By the way, in Part 3 I'll show a workaround allowing sendmail to work regardless of these permissions.
--Chris
-
Great article
2002-01-24 19:05:04 scrum [Reply | View]
Chris,
Great piece, I devoured it quickly. Very informative and well written. I can't wait until O'Reilly comes out with some books that specifically focus on the terminal.
-
Is O'Reilly going to write a book on this?
2002-01-23 22:49:08 kiwipeso [Reply | View]
I'd like you to use Hexley, the Darwin mascot if you do make a book devoted to OS X unix. (Terminal and Darwin) -
Is O'Reilly going to write a book on this?
2002-01-23 23:19:43 Derrick Story |
[Reply | View]
Hmmmm ... I can't say too much right now, but let me put it this way: By the end of this year you'll see some very cool Mac OS X stuff from O'Reilly. We're just going to make sure that we don't tell Time Canada about it first ...
-
Opening apps from the terminal
2002-01-23 07:34:38 pmccann [Reply | View]
Very nicely written article; it's helpful to be able to point people to a complete, correct version of what up to now exists in scattered threads through various osx forums.
To the point, to the point....
If you want to open Mail from the command line (or any other app from the /Applications directory tree) it probably makes more sense to use:
open -a Mail
instead of having to know the full path to Mail.app (That way if you want to open, say, the console application you can simply enter
open -a console
without having to remember that it's buried in the Utilities subdirectory of /Applications.)
Oh yeah, if the application name contains a space you can either quote the name (single or double quotes) or escape the space in the name with a backslash. Thus, to open Disk Copy, for example, you can use any of:
open -a 'disk copy'
open -a "Disk Copy"
open -a disk\ copy
Note that correct case is *not* required when specifying the name.
Cheers,
Paul (hoping that the backslashes in the above survive the trip through the formatter)






I was a windows user but moved to Mac OS X. I have some perl scripts I run on MS-DOS cmd.exe but have been having problems running those scripts on Mac OS X terminal.
Is there any command used for running perl scripts or how do I go about it.
Thanks for responding.
Cruzapete