Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 8th, 2025, 9:26 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: How to handle a file launch error?
PostPosted: December 3rd, 2009, 7:29 pm 
Offline

Joined: January 6th, 2005, 8:56 pm
Posts: 330
Location: Houston, Republic of Texas
Opus: 8
OS: W7 Pro
System: Dell Precision T5500, 8 core Dual Xeon 2.13 GHz, 24 GB RAM, All SSD drives
I am using a dummy SCO on an LMS to launch files too large to launch from the LMS. Of course, the action is "launch drivename/filename."

Anybody recommend a way to stop everything and return an error to the user if this file is not found?

It's probably easy, but my brain is fried...

Dave

Mack - Any LMS has to play to its weakest link. In our case, most of our target group, rig crews, are at the weakest link where we can only assume around 35KBps from the dish reliably as we have the lowest data priority. So, even a small, say 10mb, sim, is not going to happen.

So, I worked out a way to use the LMS to launch the sims from a local drive (loaded/updated via BG task) and then the local app passes data to the LMS on exit.

Some of our sims are 100mb or so, and since it's a single executable it all has to be there for anything to happen. This way, we get delay free response to the user.

This is probably the easiest issue I've faced making this work...but I'm tired and brain dead.

Dave

_________________
An objective is a description of a performance you want your learners to be able to exhibit before you consider them competent.
Dr. Robert F. Mager, 1962

"If you can't measure it, it's crap."
David A. Mallette, 1980


Top
 Profile  
 
 Post subject:
PostPosted: December 3rd, 2009, 9:30 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
(loaded/updated via BG task)

Is that background task run from w/i Opus?
If you have previously used the 'OpenFile()' action/command in Opus, it is a good idea to execute the 'CloseFile()' when you've completed things.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: December 3rd, 2009, 9:54 pm 
Offline

Joined: November 11th, 2004, 4:05 am
Posts: 636
Location: Christchurch, NZ
Try something like the fileExists function to check for the existence of the file...
Similar to...

if (FileExists("drivename/filename"))
{
// launching code here... launch ("drivename/filename");
}
else {
message = "file missing..."
}


Paul


Last edited by Paul on December 7th, 2009, 4:35 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: December 3rd, 2009, 10:46 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Dave,

FileExists won't work from a web-based publication. BUT then neither should launching a local file...???

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 7th, 2009, 2:59 pm 
Offline

Joined: January 6th, 2005, 8:56 pm
Posts: 330
Location: Houston, Republic of Texas
Opus: 8
OS: W7 Pro
System: Dell Precision T5500, 8 core Dual Xeon 2.13 GHz, 24 GB RAM, All SSD drives
mackavi wrote:
Hi Dave,

FileExists won't work from a web-based publication. BUT then neither should launching a local file...???

Mack

You are correct, Mack. Opus prevents this as do most responsible codes...but we have an extraordinary IT department that found a work around for our intranet. I am not going to say how as this is a sensitive area but since we are working in our on intranet it's OK.

Dave

_________________
An objective is a description of a performance you want your learners to be able to exhibit before you consider them competent.
Dr. Robert F. Mager, 1962

"If you can't measure it, it's crap."
David A. Mallette, 1980


Top
 Profile  
 
 Post subject:
PostPosted: December 7th, 2009, 5:14 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Mallette wrote:
mackavi wrote:
I am not going to say how as this is a sensitive area


I'm sure there are 'safe' ways to achieve this.

In answer to you question and as you have a clever IT department, here's one such idea.

Use something like a cron job to run a script that checks for the file and if found write a value to a database that is designed to track your packages. The web publication can access the database without problems.

Regards,

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 39 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group