Results 1 to 3 of 3

Thread: sendmail help

  1. #1
    Join Date
    Jun 2007

    sendmail help

    Hi all,

    I've got sendmail to send me a e-mail from a script using :

    echo "Starting Ark Server..." | mail -s Ark Server
    would it be possible to get it to e-mail me the status of a program so i know it has loaded?

    for example i need to login to view atm:

    root@VPS:/home/boris# service  ark status
    ● ark.service - ARK: Survival Evolved dedicated server
       Loaded: loaded (/etc/systemd/system/ark.service; enabled)
       Active: active (running) since Wed 2018-01-03 22:04:31 GMT; 6min ago
      Process: 352 ExecStartPre=/home/steam/Steam/ +login anonymous +force_install_dir /home/steam/Steam/servers/ark +app_update 376030 +quit (code=exited, status=0/SUCCESS)
     Main PID: 473 (ShooterGameServ)
       CGroup: /system.slice/ark.service
               └─473 /home/steam/Steam/servers/ark/ShooterGame/Binaries/Linux/ShooterGameServer TheIsland?listen?SessionName=Gaming?ServerPassword=PASSWORD?ServerAdminPassword=PASSWORD ...
    Jan 03 22:04:27 VPS[352]: Steam Console Client (c) Valve Corporation
    Jan 03 22:04:27 VPS[352]: -- type 'quit' to exit --
    Jan 03 22:04:27 VPS[352]: Loading Steam API...OK.
    Jan 03 22:04:29 VPS[352]: Connecting anonymously to Steam Public...Logged in OK
    Jan 03 22:04:31 VPS[352]: Waiting for user info...OK
    Jan 03 22:04:31 VPS[352]: Success! App '376030' already up to date.
    Jan 03 22:04:31 VPS[352]: CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 2 items discarded.
    Jan 03 22:04:31 VPS systemd[1]: Started ARK: Survival Evolved dedicated server.
    Jan 03 22:04:35 VPS ShooterGameServer[473]: [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
    Jan 03 22:04:35 VPS ShooterGameServer[473]: Setting breakpad minidump AppID = 346110
    this is the only important line really -

    Active: active (running) since Wed 2018-01-03 22:04:31 GMT; 6min ago
    any help would be great

  2. #2
    Join Date
    Oct 2006

    Re: sendmail help

    Thread moved to the "Server Platforms" forum.

  3. #3
    Join Date
    Aug 2010
    Lancs, United Kingdom
    Ubuntu Mate 16.04 Xenial Xerus

    Re: sendmail help

    How about...
    service ark status | fgrep Active | mail -s "Ark Server"


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts