Sign in to follow this  
Followers 0
aidbr

Script still active after standby / wakeup

4 posts in this topic

Hi,

i wrote a script to activate standby mode using api function call shutdown. After this statement the Script should write an entry to a logfile.

The problem: The shutdown command is the last statement of the script which is executed before standby. The output command ist executed after wakeup. The script stays in memory during standby.

Is it possible to schedule the shutdown command to ensure that the script has finished before standby?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

What do you want to write in log file? If it's not about the stand-by maybe you can do it before stand-by.

BTW, if i know what is the info that you want to write in log file i can help you more effective.

Edited by D4RKON3

Share this post


Link to post
Share on other sites

Maybe if yoU#d show us a little bit of your code, we could see into it. :)


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites

Well, i tested this behavior with this script:

Shutdown (32)

WriteLog ("Test")

The function WriteLog writes Text to a logfile. I only used this for testing purposes to check if script is terminated before standby.

The main problem is: Sometimes the Shutdown function is executed again after wakeup, even if it's the last line of code in the script. In this case PC goes to standby immediately after waking up. It seems that script remains in memory with a wrong "execution pointer".

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0