New Boundary Support Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Console Error MessagesExpand / Collapse
Author
Message
Posted 1/12/2004 4:06:00 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Advanced Members
Last Login: 1/21/2004 10:48:00 AM
Posts: 154, Visits: 1
Is that possible in a script (prism script) to force an error number in prism deploy console (for exemple 1600 if a file is missing).

Exemple :

if not exists c:\test.txt
=> ?? to have an alert in the console
else
=> apply a package
endif

if I do nothing, the console message is "installed", even if the file is missing. I would like to know, in the console, the result of my test in the script.

Post #248
Posted 1/12/2004 4:06:00 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: 9/3/2008 9:40:39 PM
Posts: 654, Visits: 800
Using scripts, you cannot manually manipulate what is displayed in the Deployment Logs. You can use secondary Packages to write error messages from inside of a script using methods similar to those discussed in the following Tech Note:

http://www.newboundary.com/support/docs/Tips_and_Tricks/centralerrorlog.htm

An example script could be:

if exists c:\test.txt
/InstallPackage \\server\share\package.pwc
else
/set error "test.txt does not exist"
/IP \\server\share\error.pwc
endif

error.pwc would then add an entry to a central INI file that resolves both a %computername% and the %error% variables. Then you could check the INI file and it will tell you which computers didn't have the test.txt file.





New Boundary Technologies Support
support@newboundary.com

Post #249
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: New Boundary Support

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 10:18am

Powered By InstantForum.NET v4.1.3 © 2008
Execution: 0.156. 12 queries. Compression Enabled.