Please help me write a script

Doc Holliday

New member
Local time
1:40 PM
Messages
1
Location
Bat Country
Hey all,

Long long time lurker, first time poster. I'm leaving the country for vacation and I'd like to setup a script that runs every hour to check and see if my VNC Client is running. I use this VNC client to remote into my computer from my phone and the thought of not being able to do this while abroad doesn't sit well with me. From time to time, the client crashes and the only thing I can do is restart it while physically in front of my host machine. Essentially I'd like a script that can do the following:

Check running programs for VNC proccess and service
If running, do nothing
If not running, start
If running but non-responsive, force kill and restart
Repeat hourly

What are some of the ways this is possible? Just an FYI, I use UltraVNC for this. Let me know if any other information is needed. Thank you in advance for your help.
 

My Computer

OS
7 Ultimate/Ubuntu
CPU
i7-2600k @ 4.5 GHz
Motherboard
P8P67 Pro
Memory
8GB Corsair Vengeance
Graphics Card(s)
285 GTX
Monitor(s) Displays
A few big ones
Hard Drives
Samsung Spinpoint F3 x 3 in RAID-0 array.
PSU
Corsair 1000w
Case
HAF 932
Cooling
Liquid
Hiya pal and welcome to the forums :)

Why not have a looky at Team Viewer - no need to mess about with scripts etc. you can use the web based connection method to remote your system ... and the best thing is, it's free for non-commercial use ;)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 7 Ultimate 64bit
CPU
AMD Phenom Quad core 9950 black edition
Motherboard
Gigabyte
Memory
16Gb
Graphics Card(s)
2x XFX Radeon 5850
Sound Card
PCI Express X-Fi Titanium / Logitech G35
Monitor(s) Displays
2x HP 2410i
Screen Resolution
1920x1080
Hard Drives
2x 500Gb Seagate
1x 300Gb Seagate
1x 1Tb Seagate
2x 1Tb Hitatchi
PSU
Jean Tech Storm 700W
Case
Cooler Master COSMOS S
Cooling
Akasa Evo Blue Pro
Keyboard
Logitech G15
Mouse
Mad Catz M.M.O. 7
Internet Speed
12mb
Back
Top