Source language: Translate to:

Reboot Program

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Reboot Program

Postby Neobook » Mon Feb 12, 2007 10:15 am

Hello,

I want to know if it is possible to reboot the computer or the program when my application is Buging ?

Thanks
Neobook
 
Posts: 131
Joined: Sat Jul 01, 2006 7:07 am

Postby Neobook » Mon Feb 12, 2007 11:35 am

It's mean, if the application do not answer, it has 2 chooses :
- Reboot the application
- If it's a very big Bug, Reboot the computer

Thanks
Neobook
 
Posts: 131
Joined: Sat Jul 01, 2006 7:07 am

Postby Sam Cox » Mon Feb 12, 2007 11:44 am

Hello Neobook,

I am not sure what you want to know, but ...

1) If your application is not responding, you can always terminate it using Windows' Task Manager.

2) If your application has misbehaved so badly that your computer needs rebooting -- a very big bug -- you can always reboot by cycling power on the computer.

If you are asking how to reboot the computer or terminate the program when you have lost control of it because of a bug, I cannot help with an answer.

-- Sam
Last edited by Sam Cox on Mon Feb 12, 2007 12:59 pm, edited 1 time in total.
User avatar
Sam Cox
 
Posts: 768
Joined: Fri Apr 01, 2005 7:30 am
Location: Loveland CO USA

Postby Neobook » Mon Feb 12, 2007 11:47 am

Hi,

Thanks,

My idea was, when for example my application called GTH.exe is not responding, I thought, it cans close it self or rebooting.
Neobook
 
Posts: 131
Joined: Sat Jul 01, 2006 7:07 am

Postby Sam Cox » Mon Feb 12, 2007 12:57 pm

How will your application know that it is not responding--the whole idea sounds a lot like the infamous halting problem--and if it decides that it is not responding, how should it choose between terminating itself and rebooting the computer?
User avatar
Sam Cox
 
Posts: 768
Joined: Fri Apr 01, 2005 7:30 am
Location: Loveland CO USA

Postby Cipolla » Mon Feb 12, 2007 1:41 pm

Hello neobook,

your questions are always al little bit confuse, and sometimes it is very hard to understand your problems.

I think you are talking about a system that is not administrated, like kiosk systems or a poi application.

If your application freezes because it is buggy your app is not working anymore. so no chance to restart the app with code inside your app.

In comercal kiosk systems, like systems we build we use a hardware "watchdog". you could read something about this technique in the wiki:

http://en.wikipedia.org/wiki/Watchdog_timer
Greetings from Germany
Klaus
User avatar
Cipolla
 
Posts: 166
Joined: Fri Apr 01, 2005 1:45 am
Location: Germany

Postby Sam Cox » Mon Feb 12, 2007 1:57 pm

Hi Cipolla,

Thanks for posting a significantly better reply to Neobook's question than my answer. I learned something today.

-- Sam
User avatar
Sam Cox
 
Posts: 768
Joined: Fri Apr 01, 2005 7:30 am
Location: Loveland CO USA

Postby Neobook » Mon Feb 12, 2007 10:48 pm

Hello,

My first idea was with the CPU, when a program is not responding, I thing it goes to the 100% CPU, not ?

But WatchDog timer, according to me, it's a very good program, can I made that with Neobook ?
Neobook
 
Posts: 131
Joined: Sat Jul 01, 2006 7:07 am

please read before you post

Postby AlfB » Tue Feb 13, 2007 4:36 am

A watchdog timer is a computer hardware timing device

There is even a circuit to build one at the end of the wiki article

hope that helps

ALF
User avatar
AlfB
 
Posts: 132
Joined: Sun Apr 03, 2005 12:43 am

Re: please read before you post

Postby dpayer » Tue Feb 13, 2007 7:59 am

AlfB wrote:A watchdog timer is a computer hardware timing device

There is even a circuit to build one at the end of the wiki article

hope that helps

ALF


In the ISP world these were often used to cure PC based servers that would hang on a process and need rebooting but you wouldn't want to go down to the office at all hours of the night to do so. Here is a listing on Froogle for such items:

http://froogle.google.com/froogle?q=wat ... lnk=prsugg
User avatar
dpayer
 
Posts: 1380
Joined: Mon Apr 11, 2005 5:55 am
Location: Iowa - USA

Postby Neobook » Tue Feb 13, 2007 8:41 am

Thanks,

Also, It's not a computer program but an adware, thanks
Neobook
 
Posts: 131
Joined: Sat Jul 01, 2006 7:07 am

Postby Cipolla » Tue Feb 13, 2007 9:10 am

Neobook,

what the hell do you mean with "adware" ?? here in germany adware means nearly the same like spyware. What should your application do?
Greetings from Germany
Klaus
User avatar
Cipolla
 
Posts: 166
Joined: Fri Apr 01, 2005 1:45 am
Location: Germany

Postby Neobook » Tue Feb 13, 2007 9:13 am

Sorry,
Adware, I mean a electronic cart where I connect to the PC, with USB or with a connection.
Neobook
 
Posts: 131
Joined: Sat Jul 01, 2006 7:07 am

Postby dpayer » Tue Feb 13, 2007 9:28 am

Neobook wrote:Sorry,
Adware, I mean a electronic cart where I connect to the PC, with USB or with a connection.


Sorry,

Now I am totally confused and have no idea what you actually want.

I have never heard of a electronic cart where you connect to the PC with a USB.

Does Google do a translation from your native language? I am having an extremely hard time understanding what you want to convey.

D
User avatar
dpayer
 
Posts: 1380
Joined: Mon Apr 11, 2005 5:55 am
Location: Iowa - USA

Postby Neobook » Tue Feb 13, 2007 9:32 am

I want to have a WatchDog program but it doesn't existe.

So my program can't close his self.
Neobook
 
Posts: 131
Joined: Sat Jul 01, 2006 7:07 am

Next

Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 2 guests