• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - nitro

#1
Quote from: sXwamp on 2011.06.25, 21:56:08
Quote from: melf on 2011.06.25, 15:09:44
Hi ,
The deltree from 2003 by Carl Harding was updated by him from deldir by Marc Polly (I don't know who they are, just reading from the readme). It's rexx and I guess it's ok to update again? Sys nothing about licensing or so. But I may miss your point.


Ok, it was originally name DELDIR which I tried and it was later changed to DELTREE. Unfortunately,  
it won't delete read-only files in either version.

SysFiletree(user_dir, dir_list, 'BO', '*****', '-----')

This code is not working.  Does anyone know how to remove the read-only attrib for the entire tree, before deleting it ???


Thanks,

Greggory

I have a C program that does this but you are looking for a rexx routine.
To keep it simple, Once you have the filename list you could recursively use the atrib and del system calls for the files and rd for the directories.

This removes the attributes and deletes one file.  Not Rexx but can can be modified.

@echo off
attrib -r -s -h %1
del  %1





#2
You may already have a copy of timexec.exe on the system. (without the schedule gui front end)  It shipped with one of the OS/2 add ons, I think it was one of the networking packages.  It is a simple cron program with a setup file similar to the unix cron program.

I believe timexec was later released as an stand alone Employee Written Software package but I cannot find a reference to it.  The schedule package on Hobbes includes/uses timexec.
#3
 8) Mapping software would be nice to have.  I have a bluetooth gps for my PDA but the usb devices are affordable enough to add another to my collection.

Take a look at the IBM developerworks site ,http://www.ibm.com/developerworks/edu/wi-dw-wigps-i.html,  They have a 3-part section on gps interfacing using java.  This is just how to communicate with the receiver but it may ve of some help.

Thanks,
   Nitro
#4
Here are a couple more.

PMiNews (yenc crash fix? built in yenc support and a few other minor bugs)

Dictonary (full version of the Dux app that came in the family pack)  I found a back level copy on ebay but it is not easy to merge the two versions.

#5
Thanks,

I am trying to update my backup rexx scripts for a new dvd burner.  (I can fit multiple directories on one disc now.)
I was having trouble with the retension of the base directories I am backing up.  All is well now that I have found the magic incantation.  I have been using  similar rexx scripts under Linux, but the command line options are not exactly  the same.

Regards,
   Bart
#6
Hi again,

  I gave up too early, I have found the answer (but Why?)  To help out the next user, it apears the -graft-points option (which can be abreviated to -gr on this version)  has the oposite effect on OS/2 then on Linux..  OMIT the option to use the graft points under OS/2 !  It seems it is the default.

From the included docs:
-graft-points
    Allow to use graft points for filenames. If this option is used, all filenames are checked for graft points. The filename is divided at the first unescaped equal sign. All occurrences of '\\' and '=' characters must be escaped with '\\' if -graft-points has been specified.

From the built in help in mkisofs:
-graft-points               DisAllow to use graft points for filenames

This now gives the the results I would like:
[i:\dvdburn]mkisofs2.exe -o tmp.iso "/doc=./doc"
Using ".mkisofsrc"
Using AN_2000.01A;1 for  ./doc/AN-2.01a32 (AN-2.01a31)
Using AN_2001.01A;1 for  ./doc/AN-2.01a31 (AN-2.01a30)
Using AN_2002.01A;1 for  ./doc/AN-2.01a30 (AN-2.01a29)
Using AN_2003.01A;1 for  ./doc/AN-2.01a29 (AN-2.01a28)

in the iso file I now have:
/
/doc/...

Regards,
    Bart

#7
Hi,

  I am attempting to use the -graft-points option and I cannot find the correct syntax under OS/2.  It appears the '=' is not properly recognized?

As an example I have a doc directory and I would like to maintain the files in /doc on the iso image.  (by default it places them all in the iso image from the root.)  I cannot understand which part of the statement is considered an invalid node.  I have tried the same command under Linux and all is well.  Please refer to my examples below  (a sample of my attempts.)  I also tried putting the filename list in an input file with the same results. 

I am using the mkisofs version from the Hobbes package:
http://hobbes.nmsu.edu/pub/os2/apps/mmedia/cd/cd-r/cdrtools2-2.01.01a04.zip

[i:\dvdburn]mkisofs2.exe -o tmp.iso -graft-points "/doc=./doc"
Using ".mkisofsrc"
Invalid node - '/doc=./doc': -1 (23)

[i:\dvdburn]mkisofs2.exe -o tmp.iso -graft-points "/doc\=.\\doc"
Using ".mkisofsrc"
Invalid node - '/doc\=.\\doc': -1 (23)

[i:\dvdburn]mkisofs2.exe -o tmp.iso -graft-points "\doc=.\\doc"
Using ".mkisofsrc"
Invalid node - '\doc=.\\doc': -1 (23)

[i:\dvdburn]mkisofs2.exe -version
Using ".mkisofsrc"
mkisofs 2.01.01a04 (i386-pc-os2_vac)

ps This works but does not maintian the path :
[i:\dvdburn]mkisofs2.exe -o tmp.iso -graft-points "./doc"
Using ".mkisofsrc"
Using AN_2000.01A;1 for  ./doc/AN-2.01a32 (AN-2.01a31)
Using AN_2001.01A;1 for  ./doc/AN-2.01a31 (AN-2.01a30)
Using AN_2002.01A;1 for  ./doc/AN-2.01a30 (AN-2.01a29)
Using AN_2003.01A;1 for  ./doc/AN-2.01a29 (AN-2.01a28)