NASLite Network Attached Storage

www.serverelements.com
Task-specific simplicity with low hardware requirements.
It is currently Sat May 11, 2024 11:28 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: shutdown from mac?
PostPosted: Sun Apr 26, 2009 9:52 am 
Offline

Joined: Sun Apr 26, 2009 7:28 am
Posts: 2
Location: Manchester, UK
Hi - just got M2 installed and running nicely. I have been googling and searching on this forum to see if it's possible to shut the Naslite server down from my mac. I dont use windows any longer, so using the georg scripts (which look awesome) isn't an option.

Does anyone know if it's possible to shut down from the mac? I wonder if there's any posibility to run scripts from within NasLite? I think it would be the perfect addition to the software.

Cheers


Top
 Profile  
 
 Post subject: Re: shutdown from mac?
PostPosted: Sun Apr 26, 2009 1:34 pm 
Offline

Joined: Sun Apr 26, 2009 7:28 am
Posts: 2
Location: Manchester, UK
don't know why I didn't think of this before... telnet. (possibly because I've never used it before!)

I've written an applescript which will telnet in to the nas box and send the commands to shut it down. I also added a little question first just incase someone runs it by mistake. Ideally I want to add this to the the shutdown sequence, but I've no idea how that works!

here's the code just in case someone else is after it.

Code:
set question to display dialog "Hi There. Matt's iMac here, are you sure you want to shut down the NASlite Server?

(PLEASE press NO if you've no idea what this means)" buttons {"Yes", "No"} default button 2
set answer to button returned of question
if answer is equal to "Yes" then
   tell application "Terminal" to do script "telnet 192.168.xxx.xxx
admin
password
8
Y"
end if


works like a charm!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group