Using Terminal command "mail"

Hello,
i want to use the terminal or console based "mail" command.
how can i define the outgoing data like i.e. server ?
Best regards
fidel

Hello,
to be more detailed:
i am using nagios using macports on mac-os x too monitor some macs/pc's in my company.
as i want the nagios-host/server to notife me in case of problems i need this console based mail feature.
nagios doc says:
check if mail command is working in 99 % of all cases nagios can send in this case automaticly.
thats why i am asking :P
back to mail:
am i forced to use sendmail ?
or can i use any other MTA in OS X ?
im wondering that it seems like nearly noone inhere is working with terminal based apps...
best regards
fidel

Similar Messages

  • Hey,i forgot my login password,so i changed the password by using terminal command(reset password).now i have new user name with new password,but i can't find  my data which i have saved on mac.please help me out in this matter.

    hey,i forgot my login password,so i changed the password by using terminal command(reset password).now i have new user name with new password,
    but i can't find  my data which i have saved on mac.the storage is showing data used and free space on the disk
    please help me out in this matter.

    How did you change your user name?
    resetpassword wouldn't have done it. If you managed to create a new user, then your data is still in the old account.

  • Filevault encryption paused, despite reset of PRAM and using terminal commands

    I have been trying to partition my HDD but am unable to because file vault encryption is paused - and has been since October 2014.
    I attempted making a new user to see if this would bypass it, but it didn't.
    I have reset the PRAM and have repaired the HDD both in recovery and normal, neither work.
    I have also used terminal command "sudo fdesetup disable" to attempt turning it off, but that doesn't work either.
    Help please??
    Harry

    If you don't already have a current backup of all data, back up before proceeding. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    Start up in Recovery mode. When the OS X Utilities screen appears, select Disk Utility.
    In the Disk Utility window, select the icon of the startup volume from the list on the left. It will be nested below another disk icon, usually with the same name. Click the Unlock button in the toolbar. When prompted, enter the login password of a user authorized to unlock the volume, or the alternate decryption key that was generated when you activated FileVault.
    Then, from the menu bar, select
              File ▹ Turn Off Encryption
    Enter the password again.
    You can then restart as usual, if the system is working. Decryption will be completed in the background. It may take several hours, and during that time performance will be reduced.
    If you can't turn off encryption in Disk Utility because the menu item is grayed out, you'll have to erase the volume and then restore the data from a backup. Select the Erase tab, and then select
              Mac OS Extended (Journaled)
    from the Format menu.
    You can then quit to be returned to the main Recovery screen. Follow these instructions if you back up with Time Machine. If you use other backup software, follow its developer's instructions.
    Don't erase the volume unless you have at least two complete, independent backups. One is not enough to be safe.

  • HT2254 is there a way to install mac widget using terminal command?

    Is there a way to download and install mac widget using ther terminal command instead of using widget manager?
    I need to install on a large number of macbooks, this will save me a lot of time...
    Thanks,
    HB

    I am not sure if defaults write will do the install:
    http://ss64.com/osx/defaults.html

  • Using Terminal Commands and Maintenance

    I am trying to use the terminal commands as indicated in this article -
    http://support.apple.com/kb/HT2319?viewlocale=en_US - however, the response I get is "no such directory." While I used to be able to run this maintenance command in Tiger with no problems, I cannot do it with Leopard for some reason. Suggestions?

    this article doesn't apply to leopard. if you want to force periodic tasks from terminal run
    sudo periodic daily
    etc. to run them all at once run
    sudo periodic daily weekly monthly
    However, leopard does a better job than tiger at running them and unless your mac is shut down at night every night it will run the tasks itself.

  • Using terminal command to set apple display factor

    I have been doing support for a friend and we have run into a problem with Outlook 2011 for Mac since we upgraded to Mavericks.
    In the old version I was able to use the command defaults write com.microsoft.Outlook AppleDisplayScaleFactor 1.25
    Now this command no longer works.
    The approach has been documented since early 2011.
    Has the command line changed or bee

    As this has been a minor issue that I have somewhat obsessively been pursuing an answer for....
    The above command DOES infact change the value, however it never actually effects the GUI.
    You can easily confirm this by running a before and after
         defaults read com.microsoft.Outlook AppleDisplayScaleFactor
    It should return a 1 (or rather 1.0) before, and then a 1.25 after, or whatever value you changed it to via your defaults write command [sorry, don't post here really and dont know how to properly format the command line text]
    I've tried running this command as the current user, in sudo, and even as su - all of which (when pathed properly) change the actual value in the plist, but they never actually make the change to the GUI.
    Does anyone have any information as to why this apparently broke in Lion?
    Hope this helps someone out there, I've had zero success with this for my users.
    Edit:
    Melophage - the single (or even double) quotes had no effect on making the change effective - the value still is "set" to 1.25 with or without those quote marks, it just doesn't display that change in Outlook.  Thanks for the thought though, was worthwhile

  • Permissions will not set, even after using terminal commands?

    Hey,
    I found a thread on here for using the terminal to type in commands for the user permissions and for the PSIX permissions on Leopard (10.5) server.  These commands are supposed to clean the server of all underlying(hidden) permissions that you cant see and then you are supposed to be able to then set the permissions again and finally, to hit "Propagate Permissions" so that all the permissions set for the shared volume then get farmed out to all sub files/folders.  This did not work when I tried it in the terminal, it said "Command not found" even after I typed in the admin password.  Is there anyone out there who can tell me the actual way to fix the old permissions and get new ones set?
    The story is:  We had an old server on a G4 when i first took control of the server, I took the shared hard drive out of the G4 and inserted it into a G5 and started using it with the leopard server.  the permissions did not really need to be set on that volume because they had carried over from the last time they were shared.  But we recently just got a Drobo unit for our server and I recently transferred all the shared files and folders over to the new volume, but ever since I cant get the permissions to farm out to all the stations, it shows me that its done on the server.  But when I go to access the files I am able to delete faculty folders where I had set the permissions to "read only" so I am wondering if there is a streamlined way of going about this or if I should just start from scratch and use all brand new HDD's?
    Please Help!

    Hi ..
    Try the tips mentioned here > Mini-tutorial: Force-deleting stubborn or problematic files in Mac OS X

  • [Guide] Useful terminal commands for troubleshooting/system status.

    Hi everyone.  I'm looking for a concise list of useful commands to run incase something should happen to be going wrong somewhere (and also a 1-line for what they do)...the kind of output you'd post in a bug report.  Some other good commands would help make "whats going on under the hood" more clear.
    Also, if you have some useful directories (like /var/log), I'll take them too.
    Current List (Thanks to all the posts below):
    iwconfig, ifconfig | currently running wireless and overall link/state status.
    dmesg | down/n/dirty low level system activity log
    htop (non-built-in) | Process monitor
    iftop, nethogs (non-built-in) | Bandwidth usage monitor
    lsmod | Currently loaded modules
    pstree | Currently running processes in a tree-text format
    df -h | Hard drive space usage
    ps -A -ao rss,comm | sort -rn | sed -n '1,5{s/^/\t/;s/ /\t/p}' | Top 5 ram hogs and how much
    xsel -o -p |  Clipboard monitoring (non-built-in)
    xsel -o -b |
    /var/log - looking for a log from a system process...probably here.
    ~/.XXXX - User installed programs house their config files here... ~/ = Your username's home directory.  Equivalent to Application Data on Windows.
    Last edited by dr/owned (2009-03-21 15:57:21)

    ltrace -- strace-like, but shows library calls, not only system ones.
    vmstat -- shows many essential system parameters at a glance, first tool to start investigating bottlenecks
    lsof -- "list open files"; as network sockets, pipes, ... are all "files", there are many interesting informations to gather. But I use it for two purposes mainly: to identify file descriptors in strace/ltrace output and for finding deleted, but still open files eating disk space.
    I like atop also, for its ability to show aggregated data, grouped by user or process name.

  • Using terminal to uninstall program

    I have instructions to uninstal a program using terminal commands...but it won't let me get to the directory were the uninstall program is:
    cd /Library/Application Support/SecurID
    It won't let me go to Application Support folder even though when I list files in the Library directory, it shows up?

    My question might not be clear....trying to get to Application Support folder using terminal and it won't let me.
    Macintosh-3:Library Melissa$ ls
    Acrobat User Data          Favorites                    Printers
    Address Book Plug-Ins          FontCollections                    PubSub
    Application Support Fonts                              Receipts
    Assistants                    Icons                              Recent Servers
    Audio                              Input Methods                    Safari
    Autosave Information          Internet Plug-Ins          Saved Searches
    Caches                              Keyboard Layouts          Screen Savers
    Calendars                    Keychains                    Sounds
    ColorPickers                    LaunchAgents                    Spelling
    ColorSync                    Logs                              Voices
    Colors                              Mail                              iMovie
    Compositions                    Mail Downloads                    iTunes
    Cookies                              PreferencePanes
    Documentation                    Preferences
    Macintosh-3:Library Melissa$ cd Application Support
    -bash: cd: Application: No such file or directory

  • What's the terminal command to reindex mail?

    Hi all!
    I have a corrupt POP mailbox (among a dozen or so active accounts I check with mail). Using the "rebuild" command simply loses all but the past few days of messages. Trashing the envelope files in my library file and forcing a reindex has the same effect -- I lose all but a couple of days worth of messages.
    I have seen, in pre-Lion postings, references to using this command in terminal to fix a corrupt mailbox:
    sqlite3 ~/Library/Mail/Envelope\ Index vacuum;
    But I am not sure that the syntax is correct, given that the subdirectories of the ~/Library/Mail folder were changed in Lion.
    Does anyone have the correct syntax for this?
    Any other help tips and suggestions would also be appreciated. The problem appears to affect only the inbox for one of my many accounts.
    Thanks for any help!
    Greg

    Hi hello
    Tell me, you try make a magic triangle with Lion ?
    Have you solve your issue ?
    Sudo disconfigad -enablesso ? worked for you ??? for me command not found
    Thanks for your help

  • I've used a terminal command to change default send keyboard shortcut and now it doesn't work at all!

    My friend provided me with a Terminal command allow me to use Cmd+Enter to send an email (muscle memory from Outlook, hard to forget!)
    Command was:
    defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" "@\\U21a9"
    Did that, and it didn't add the Cmd+Enter instruction but removed the Cmd+Shift+D instruction, so I had NO keyboard shortcut. Then Cmd+Enter started working. For a while. Now I'm back to getting the irritating error bleep sound, and having no functional keyboard shortcut for sending mail.
    Does anybody have any advice?

    Try
    defaults delete com.apple.mail NSUserKeyEquivalents
    Then, relaunch Mail.

  • I get "App Store Disabled" on my MacBook Pro due to profile issues. What Terminal command can I use to reset profile settings?

    After transferring documents from one MacBook Pro to another I get some weird errors due to settings that seem to have transferred over. One is that the Mac App Store is disabled.
    Are there any Unix / Terminal commands I can use to reset these?

    Forgot Your Account Password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password and
         OS X Lion- Apple ID can be used to reset your user account password.

  • How can I change the "Ask to join new networks" option using a terminal command?

    We are currently switching to a new wireless network throughout our school district and I have pushed commands to connect to the new and remove the old. However, any Macs that have "Ask to join new networks" enabled are jumping over to our unsecure guest network, even if that network has been removed from the list of Preferred Networks. So far the fix has been to remove the guest network from the list of Preferred Networks and then disable Ask to join. The only issue I'm running into now is I have been unable to find a terminal command to change this setting. Once I have the command I can write a script and send that out to all of the Macs.
    So is there a way to disable "Ask to join new networks" using command line?

    sed -i "" 's/Prompt/DoNothing/' /Library/Preferences/SystemConfiguration/preferences.plist

  • Terminal - how to find my external hard drive using unix commands

    just discovered terminal and using cd and ls commands, which are the only commands i know, i realized that i can't find my external hard drive. i thought it would be listed on my desktop, as it is in the OSX interface, but it isn't there.
    not that im skilled enough to use terminal yet, but i thought the first step would be being able to navigate the computer's files.
    really curious as to where my external hard drive is and how i can find it using unix commands in terminal.
    i was trying to figure it out myself, then i thought surely someone knows this and could tell me in a sec.
    thanks.
    ibook   Mac OS X (10.4.4)  
    ibook   Mac OS X (10.4.4)  

    "ls /Volumes" will list all volumes, including internal and external hard drives and mounted disk images. I find "disktool -l" more useful in scripts, as it tells you which volume names correspond to which "mount points" under /Volumes. Usually they're the same, but if you have two volumes with the same name, or you try to remount a removable volume before it is fully unmounted, you'll end up with a mount point that consists of the volume name with a numerical suffix.

  • Terminal Command, how to set defaults write, make application(s) use directory path where file last saved?

    Does anyone know whether there's a terminal command to make all applications remember/use the last directory/path where I last saved a file?
    For example, let's say there are (10) ten PDF's on a website, and I want to use Preview.app to open and save each file to the same directory.
    Problem is, after each time I save a file, Preview.app doesn't automatically remember/use the last directory where I saved my file(s).
    Forcing me to navigate back to the same directory after each time I save a file; super-annoying.
    But, for some reason, when saving images from the web, Firefox remembers the last directory where I saved the file (jpeg).
    So I'm hoping there's some way, possibly a terminal command to set/force all applications (including Preview.app) to remember/use the directory/path where file(s) were last-saved.
    Anyone?

    Get the third-party utility Default Folder X 4.4.9.

Maybe you are looking for

  • Could not Auto-save your document ERROR

    Greetings, I am going through a nightmare at our school. Keynote regularly brings the above error and I am stuck now, Reinstall of Iwork,File Server and disabling auto save didnt help. This is the the log extract : 11/28/14 10:13:09.565 AM Keynote[10

  • Help With Range Query

    Hi folks, Let's say I have a table with this data: START_DATE  END_DATE 01-OCT-2007 02-OCT-2007 05-OCT-2007 02-OCT-2007 03-OCT-2007 03-OCT-2007 20-OCT-2007 21-OCT-2007I would like a query that would give me each unique date including ones that fall b

  • How Do I Keep My Photos on an external drive?

    I was using an external drive to store my iPhoto Library.  When I clicked it to convert it to the Photo app, I started seeing my laptop's hard drive space slowly ticking down.  I had no option to keep my photos on my external drive, it seemed they wh

  • Header text is not changing when ship to party has changed

    Hello Team, I am facing one issue when ship to party has changed in sales order the header text is not re determining automatically, I have read some posts and found that using standard its not possible we need to write enhancement for that. I have w

  • Captured DV tape doesn't show entire clip in FCP

    I just imported a second MiniDV tape, but it only shows 23m in FCP while QT reports 61m and 16GB file. I have tried importing the clip from the finder, but it's still cut off. What's wrong?