Skip navigation.
Home
The QNX Community Portal

View topic - Snapshot (Photon program) - dynamize line parameters?

Snapshot (Photon program) - dynamize line parameters?

For the old QNX2 and QNX4 RTOS

Snapshot (Photon program) - dynamize line parameters?

Postby Pilotek » Tue Dec 06, 2016 11:07 am

Hello,
please, is it possible to "dynamize" command line parameters of the Snapshot (Photon program making screenshots) in order to put "BMP Spool File" to common SMB share (on Windows PC) but not with static filename "print1.bmp".

I need somehow "dynamize" the filename (e.g. according to the date/time or logged-on user or so).

If it is possible, please give me some examples.

Thank you
Pilotek
Senior Member
 
Posts: 124
Joined: Thu Jan 25, 2007 3:52 pm

Re: Snapshot (Photon program) - dynamize line parameters?

Postby Tim » Tue Dec 06, 2016 5:30 pm

Doesn't appear to be from the doc's.

But it should be a trivial matter for you to write a wrapper program (or script fie) that does what you want. Your program/script would call snapshot to take a screen shot and then take the resulting print1.bmp file and rename it using date/time and add the "BMP Spool File" option.

If needed your program/script can be called snapshot and the existing snapshot can be renamed to 'snapshot1' or s something like that.

Tim
Tim
Senior Member
 
Posts: 1388
Joined: Wed Mar 10, 2004 12:28 am


Return to QNX2 and QNX4

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests