Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/proekt/public_html/ishutdownapp.com/forum/Sources/Load.php(225) : runtime-created function on line 3
Execute shell script before shutdown
iShutdown forum
September 17, 2019, 06:47:24 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: (15.06.2011) PC server updated to 1.2 version
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Execute shell script before shutdown  (Read 11369 times)
abonet
Newbie
*
Posts: 7


View Profile
« on: July 11, 2013, 12:48:37 PM »

Hello,
I have a question about the proccess when the computer shutdown.
I want to shutdown a mac mini server with Mountain Lion Server on it. I have FileMaker Server Advanced installed also and 6 different databases opened and running. The GUI of FileMaker Server is always opened and I have a shell script ready to run before shutdown.
This shell script works well in normal shutdown and stops databases and FileMaker Server program, but doesn't work when I use iShutdown.
Can you send me any clue about it, please?
It's possible to add a shell script to execute before iShutdown?
Thank's in advance.
Best regards.
Logged
Vlad Polyanskiy
Administrator
Full Member
*****
Posts: 229


View Profile Email
« Reply #1 on: July 12, 2013, 02:09:19 AM »

I can compile and send you specific version of iShutdown server which
will execute your script and run shutdown process only after when it's done.

I'll take a look on this at the monday.
 
Logged
abonet
Newbie
*
Posts: 7


View Profile
« Reply #2 on: July 12, 2013, 02:21:16 AM »

Thank you for your fast answer.
We are expecting for that.
Thank you.
Logged
abonet
Newbie
*
Posts: 7


View Profile
« Reply #3 on: July 16, 2013, 11:50:24 AM »

I can compile and send you specific version of iShutdown server which
will execute your script and run shutdown process only after when it's done.

I'll take a look on this at the monday.
 

You could check the problem I wrote last week?

Thanks in advance.

Best regards.
Logged
abonet
Newbie
*
Posts: 7


View Profile
« Reply #4 on: July 22, 2013, 10:03:10 AM »

Hi Vlad,

I have not received answer.

Do you have any thing to say about it?

Thank's in advance.

Best regards.
Logged
Vlad Polyanskiy
Administrator
Full Member
*****
Posts: 229


View Profile Email
« Reply #5 on: July 24, 2013, 01:43:16 AM »

Hi, sorry for so long waiting. i compile a new version of iShutdown server for you.

you can download it here
http://ishutdownapp.com/distrib/iShutdownGray.dmg

feel free ask any questions you have.
Logged
abonet
Newbie
*
Posts: 7


View Profile
« Reply #6 on: September 18, 2013, 10:39:20 AM »

Hi, sorry for so long waiting. i compile a new version of iShutdown server for you.

you can download it here
http://ishutdownapp.com/distrib/iShutdownGray.dmg

feel free ask any questions you have.

I tested this version of the program for a few days and I have some problems. I'll explain how I install it and surely you can give me some indication.
I manage six networks in which I've installed the program on a server. These networks are connected by ethernet and devices like the iPhone are connected via wifi through an airport, which is connected to the Ethernet network.
I created a shell script that closes the FileMaker Server, stops opened databases on FileMaker Server and stops AFP and SMB services. This shell script should run to receive the shutdown order from the iPhone and then should shutdown the computer.
I have just set up a computer on the iphone and I'm within the network to send the command. IShutdown program settings is complete and I have written the computer's IP address, and MAC address but when I use the computer iShutdown unresponsive.
Can you help me giving me some indication, please?
The computer uses Mac OS X Server 10.8
Thanks in advance.
And one thing more about shutdown app on iphone. The button appear without any color on it or yellow.
« Last Edit: September 18, 2013, 10:42:10 AM by abonet » Logged
abonet
Newbie
*
Posts: 7


View Profile
« Reply #7 on: September 19, 2013, 06:22:28 AM »

I've tried a new thing in one network.
The computer is connected through ethernet and wifi (two ways at same time). iPhone is connected through wifi (logical).
When iShutdown is used, the computer doesn't shutdown but in console you can find this messages:

19/09/13 13:06:06,186 Console[69160]:  Marcador - 19/09/2013 13:06:06
19/09/13 13:06:08,930 iShutdown[227]: Added connection.
19/09/13 13:06:08,970 iShutdown[227]: Connection closed.
19/09/13 13:06:24,860 iShutdown[227]: Added connection.
19/09/13 13:06:24,861 iShutdown[227]: launch path not accessible
19/09/13 13:06:24,862 iShutdown[227]: (
   0   CoreFoundation                      0x94c0912b __raiseError + 219
   1   libobjc.A.dylib                     0x982b952e objc_exception_throw + 230
   2   CoreFoundation                      0x94b68bbb +[NSException raise:format:] + 139
   3   Foundation                          0x92b48dc5 -[NSConcreteTask launchWithDictionary:] + 521
   4   Foundation                          0x92bbb447 -[NSConcreteTask launch] + 40
   5   iShutdown                           0x00002934 iShutdown + 6452
   6   iShutdown                           0x0000268b iShutdown + 5771
   7   CoreFoundation                      0x94bcfb01 _inputStreamCallbackFunc + 81
   8   CoreFoundation                      0x94b299fd _signalEventSync + 109
   9   CoreFoundation                      0x94b2997a _cfstream_solo_signalEventSync + 106
   10  CoreFoundation                      0x94b297a7 _CFStreamSignalEvent + 599
   11  CoreFoundation                      0x94b29547 CFReadStreamSignalEvent + 39
   12  CFNetwork                           0x9924c82a _ZN29CoreReadStreamCFStreamSupport19coreStreamReadEventEP16__CoreReadStreamm + 124
   13  CFNetwork                           0x9930d4a2 _ZThn12_N29CoreReadStreamCFStreamSupport19coreStreamReadEventEP16__CoreReadStreamm + 34
   14  CFNetwork                           0x9924c799 _ZN20CoreReadStreamClient25coreStreamEventsAvailableEm + 51
   15  CFNetwork                           0x9924c74a _ZN14CoreStreamBase14_callClientNowEv + 60
   16  CFNetwork                           0x9924c565 _ZN14CoreStreamBase34_streamSetEventAndScheduleDeliveryEmh + 123
   17  CFNetwork                           0x9924c4df _ZN14CoreStreamBase12_signalEventEm13CFStreamErrorh + 137
   18  CFNetwork                           0x9924c450 _ZN14CoreStreamBase28_streamInterface_SignalEventEmPK13CFStreamError + 68
   19  CFNetwork                           0x9924c3a1 _ZN12SocketStream40dispatchSignalFromSocketCallbackUnlockedEP24SocketStreamSignalHolder + 55
   20  CFNetwork                           0x9924bd05 _ZN12SocketStream14socketCallbackEP10__CFSocketmPK8__CFDataPKv + 189
   21  CFNetwork                           0x9924bc39 _ZN12SocketStream22_SocketCallBack_streamEP10__CFSocketmPK8__CFDataPKvPv + 97
   22  CoreFoundation                      0x94b2218d __CFSocketPerformV0 + 1149
   23  CoreFoundation                      0x94adf66f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
   24  CoreFoundation                      0x94adf169 __CFRunLoopDoSources0 + 441
   25  CoreFoundation                      0x94b04e46 __CFRunLoopRun + 934
   26  CoreFoundation                      0x94b0463a CFRunLoopRunSpecific + 378
   27  CoreFoundation                      0x94b044ab CFRunLoopRunInMode + 123
   28  HIToolbox                           0x94d8a15a RunCurrentEventLoopInMode + 242
   29  HIToolbox                           0x94d89ec9 ReceiveNextEventCommon + 374
   30  HIToolbox                           0x94d89d44 BlockUntilNextEventMatchingListInMode + 88
   31  AppKit                              0x9179fa3a _DPSNextEvent + 724
   32  AppKit                              0x9179f26c -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
   33  AppKit                              0x917956cc -[NSApplication run] + 855
   34  AppKit                              0x917386f6 NSApplicationMain + 1053
   35  iShutdown                           0x000020e9 iShutdown + 4329
)
19/09/13 13:06:24,863 iShutdown[227]: launch path not accessible
19/09/13 13:06:24,864 iShutdown[227]: (
   0   CoreFoundation                      0x94c0912b __raiseError + 219
   1   libobjc.A.dylib                     0x982b952e objc_exception_throw + 230
   2   CoreFoundation                      0x94b68bbb +[NSException raise:format:] + 139
   3   Foundation                          0x92b48dc5 -[NSConcreteTask launchWithDictionary:] + 521
   4   Foundation                          0x92bbb447 -[NSConcreteTask launch] + 40
   5   iShutdown                           0x00002934 iShutdown + 6452
   6   iShutdown                           0x0000268b iShutdown + 5771
   7   CoreFoundation                      0x94bcfb01 _inputStreamCallbackFunc + 81
   8   CoreFoundation                      0x94b299fd _signalEventSync + 109
   9   CoreFoundation                      0x94b2997a _cfstream_solo_signalEventSync + 106
   10  CoreFoundation                      0x94b297a7 _CFStreamSignalEvent + 599
   11  CoreFoundation                      0x94b29547 CFReadStreamSignalEvent + 39
   12  CFNetwork                           0x9924c82a _ZN29CoreReadStreamCFStreamSupport19coreStreamReadEventEP16__CoreReadStreamm + 124
   13  CFNetwork                           0x9930d4a2 _ZThn12_N29CoreReadStreamCFStreamSupport19coreStreamReadEventEP16__CoreReadStreamm + 34
   14  CFNetwork                           0x9924c799 _ZN20CoreReadStreamClient25coreStreamEventsAvailableEm + 51
   15  CFNetwork                           0x9924c74a _ZN14CoreStreamBase14_callClientNowEv + 60
   16  CoreFoundation                      0x94adf66f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
   17  CoreFoundation                      0x94adf099 __CFRunLoopDoSources0 + 233
   18  CoreFoundation                      0x94b04e46 __CFRunLoopRun + 934
   19  CoreFoundation                      0x94b0463a CFRunLoopRunSpecific + 378
   20  CoreFoundation                      0x94b044ab CFRunLoopRunInMode + 123
   21  HIToolbox                           0x94d8a15a RunCurrentEventLoopInMode + 242
   22  HIToolbox                           0x94d89ec9 ReceiveNextEventCommon + 374
   23  HIToolbox                           0x94d89d44 BlockUntilNextEventMatchingListInMode + 88
   24  AppKit                              0x9179fa3a _DPSNextEvent + 724
   25  AppKit                              0x9179f26c -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
   26  AppKit                              0x917956cc -[NSApplication run] + 855
   27  AppKit                              0x917386f6 NSApplicationMain + 1053
   28  iShutdown                           0x000020e9 iShutdown + 4329
)
19/09/13 13:06:45,769 iShutdown[227]: Added connection.
19/09/13 13:06:46,716 iShutdown[227]: Connection closed.
19/09/13 13:06:55,387 iShutdown[227]: Added connection.
19/09/13 13:06:55,824 iShutdown[227]: Connection closed.
19/09/13 13:06:55,932 mdworker[69200]: Unable to talk to lsboxd
19/09/13 13:06:55,941 mdworker[69199]: Unable to talk to lsboxd
19/09/13 13:06:56,009 sandboxd[69203]: ([69200]) mdworker(69200) deny mach-lookup com.apple.ls.boxd
19/09/13 13:06:56,014 sandboxd[69203]: ([69199]) mdworker(69199) deny mach-lookup com.apple.ls.boxd
19/09/13 13:06:56,000 kernel[0]: Sandbox: sandboxd(69203) deny mach-lookup com.apple.coresymbolicationd
Logged
abonet
Newbie
*
Posts: 7


View Profile
« Reply #8 on: September 23, 2013, 02:56:57 AM »

Don't worry about the problem because I've found the solution.

Was a simple problem with shell script file. After change the file to executable through terminal (chmod +x filename.txt) all work perfect.

Thank you again for your answers and help.
Logged
Vlad Polyanskiy
Administrator
Full Member
*****
Posts: 229


View Profile Email
« Reply #9 on: October 24, 2013, 01:47:26 AM »

You welcome Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!