cross posted, originally from qdn.public.qnxrtp.newuser
dzm <> dzm@tm.net.my> > wrote:
If I uninstall & reinstall the qnxrtp, will all the files that I’ve
downloaded from qnx repository be gone?
Yes, you would have to download all the packages again.
that cant be right Marcin, if we could simply backup the repository
to a /root/backup/ dir then work out all the other associated files
(something in .photon dir ,what else ?) that the repository looks
for to know what it already has installed then that must be a way to
reinstall a base RTP then simply unpack that backup skipping the files
already there, of cause we need to know what if anything, not to skip
so that this newly installed RTP ends up as it should be.
it seems to me that if someone that knows RTP shell scripting make
a simple backup.x
script to backup/reinstall an already installed
and working repository, it would be a good thing, anyone care to
try ?.
as of yet i`v not seen anyone mention scripting, its a shame really
as i use amiga DOS scripts very effectively in workbench, i d like
someone to write a RequestChoice type shell command (and its brothers)
that would make RTP Photon Gadgets (widgets) for use from RTP shell
scripts.
this RequestChoice
+ scripting could be a VERY useful set of shell
commands that would allow many none hardcore developers make simple
Photon GUI front ends for many shell commands, plus i`d imagine
many hardcore would use these as well rather than spend and extra
day or more adding these types of simple GUIs to each and every
app they make ?.
heres an section of an example i posted elsewere of how the amiga
version does it for reference.
id also like to see every lha/zip/tgz/whatever packed RTP 3rd party product/port have an old style BBS type
File_ID.DIZ` text file in there,
with what this packed file is, version, install instruction and
any other details that might make tracking large amounts of apps
and their version No.s
for those that dont know this command it works like this:
requestchoice ? (?=use in amigados)
TITLE/A,Body/A,Gadgets/M,Publicscreen/K:
and heres a very old amigaDOS shell script (1 of many)i use from
the shell or SID2 for setting working dirs/progs to use as i click
the GUI buttons RequestChoice makes.
some lines below may word wrap but set/type lines are really one
…key file
; $VER: EDos_ZIP
Failat 9999
;- Setup Programs & Paths
Set win=“EDos FILEID Extractor”
Set GoCed=“work:editors/ceded”
Set Archiver=“work:Archivers/UnZip”
;- End Setups
lab ask
Delete >NIL: File_id.Diz
set req=RequestChoice "$win" "Do what with {<file>} FileID" "List" "DIZEdit" "DIZShow" "Quit"
if $req eq “0”
Skip Exit
Endif
if $req eq “1”
$Archiver >“CON:0/10/640/300/Listing `’/CLOSE/WAIT” -v
Endif
if $req eq “2”
$Lharc X File_ID.Diz
$goced FILE_ID.DIZ -s
set req=RequestChoice "$win" "Repack FileID.DIZ into {<file>}" "Repack" "Cancel"
if $req eq “1”
$Lharc d File_ID.DIZ
$Lharc a File_id.DIZ
endif
endif
if $req eq “3”
$Lharc X File_ID.Diz
if exists File_ID.Diz
Type >“CON:0/75/440/100/Showing <file>' FileID.Diz/CLOSE/WAIT" File_ID.Diz Else RequestChoice "$win" "No Description in
'” “OK”
endif
endif
if $bounce NOT EQ 0
skip back ask
endif
Lab Exit
while as yet i`v not seen anyone mention useing RTP shell scripts in
every day use, i assume that it has something like the power of this
simple amiga DOS ?.
i`m thinking i (anyone able to work how this script works and change
as needed) could use this in the shell or more likely within that
worker v1.3.3 (Dopus4 port) i keep mentioning to everyone slightly
interested in a good file manager, get LOL.
as you can see the script does the main work of setting options then
the options are passed to requestchoice, that in turn produces in this
case, 4 GUI button gadgets the user can click on to make their selection,
that then executes the right part of the script and drops out in this case.
it looks something like this but way better GFX
Edos File Extractor []
Do What With {} FileID
- [DizEdit] [DizShow] [Quit]
=======================================
assuming that the RTP shell scripts can work in this mannor
(the “CON:0/10/640/300/name file-to-process/closegadget/waitforclick”
type screen positioning/feedback ECT would be nice but not essential
for this to work id guess/hope) and one of you see fit to make the time to create this RequestChoice (and perhaps requestText, RequestFile to compliment it) type shell command that can produce these simple widget buttons in Photon, i
d hope that many people could produce simple RTP GUI front ends
such as i`v been useing in amiga dos for MANY years.
anyone fancy giving it a try, perhaps even have this and its brothers
in the official repository with a guideline text of how to use it
for download.
one thing that really bugs me about the amiga version though was that
it allows you to have as many gadgets (widgets) across the screen, BUT
it doesn`t have any option in there to allow multi stacked gadgets
like so.
[gadget1] [gadget2] [gadget3] [gadget4]
[gadget5] [gadget6] [gadget7] [gadget8]
so i would have one part of the script call another script
if i ever needed more gadgets than i had horizontal screen space.
if you see fit to try codeing this, please try and find a way to add
stacked gadgets.
–
Paul May, Manchester, UK
Team Phoenix Core