Using terminal to remotely control Mac running as a home file server

I am using a MacBook Pro 2013 as a home file server. I have

schedules to have it turn on in the morning, and at night, I remotely shut it

down from my everyday mac in terminal. However, I want to broadcast a message

through terminal to users who are locally logged-in so they can save their work

before the server shuts down. Then I want to run a command that tells the computer

to shut down in 10 minutes. Is all of this possible to do, and if so, how?

Mac

Posted on Feb 28, 2022 12:38 PM

Reply

Similar questions

1 reply

Apr 1, 2022 12:09 PM in response to TheTechPianoPlayerKid

TheTechPianoPlayerKid wrote:

I am using a MacBook Pro 2013 as a home file server. I have
schedules to have it turn on in the morning, and at night, I remotely shut it
down from my everyday mac in terminal. However, I want to broadcast a message
through terminal to users who are locally logged-in so they can save their work
before the server shuts down. Then I want to run a command that tells the computer
to shut down in 10 minutes. Is all of this possible to do, and if so, how?


see if there is anything here:

Use Mac mini as a server - Apple Support


Using OS X as a File Server for a Network - Lifewire



see this reference: Setting up a local web server on a Mac - Apple Community



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Using terminal to remotely control Mac running as a home file server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.