Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
133 user(s) are online (127 user(s) are browsing Forums)

Members: 1
Guests: 132

ktadd, more...

Support us!

Headlines

 
  Register To Post  

Dump drawer contents to text file with date file size and version number?
Just can't stay away
Just can't stay away


See User information
Hi, I normally use SYSMON or Ranger to check my libs versions. Those programs do not offer an option to output to text file. Is there a shell command that would do this?

Thanks.

AmigaOne X1000.
Radeon RX550

http://www.tinylife.org.uk/
Go to top
Re: Dump drawer contents to text file with date file size and version number?
Home away from home
Home away from home


See User information
@ddni

Well you can make a script, to do this.
I'm not at my computer, so excuse any mistakes

List all lformat "echo *"%p%n*"*nversion *"%p%n*"" > t:X
Execute t:X

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Dump drawer contents to text file with date file size and version number?
Just can't stay away
Just can't stay away


See User information
Thanks,
I apprecaite your help, not getting version numbers though.
The output files shows for each file:

echo "minigl.library"
version "minigl.library"

AmigaOne X1000.
Radeon RX550

http://www.tinylife.org.uk/
Go to top
Re: Dump drawer contents to text file with date file size and version number?
Home away from home
Home away from home


See User information
@ddni

Yes and then you pipe it into t:X
So you get a file t:x with all the commands.
This is now script you can execute, with the execute command.

Hope this helps you


Edited by LiveForIt on 2022/7/21 18:43:42
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Dump drawer contents to text file with date file size and version number?
Just can't stay away
Just can't stay away


See User information
Thanks, it really put me on the right lines.

Daedalus suggested to use SPat "version >> t:output.txt"#? which worked for me.

AmigaOne X1000.
Radeon RX550

http://www.tinylife.org.uk/
Go to top
Re: Dump drawer contents to text file with date file size and version number?
Just popping in
Just popping in


See User information
I just have the Version column enabled for Libs:, C:, and such directories in DOpus... and then you can print the directory to a file with it too :)

Go to top
Re: Dump drawer contents to text file with date file size and version number?
Just can't stay away
Just can't stay away


See User information
@jPV

Good tip, DirOpus4?

AmigaOne X1000.
Radeon RX550

http://www.tinylife.org.uk/
Go to top
Re: Dump drawer contents to text file with date file size and version number?
Just popping in
Just popping in


See User information
I've been using Magellan2 since 1998, so I don't remember if DOpus4 had configurable columns (or even per dir ones). And if the original doesn't, I also don't know if this feature has been added to newer open source ones... sorry.

Go to top
Re: Dump drawer contents to text file with date file size and version number?
Just can't stay away
Just can't stay away


See User information
@jPV

DirOpus 4 does have configurable columns, but version is not among the data you can select for a column.

One way around it could of course be a script or program which puts the version into the file comment for all libraries in the LIBS: drawer (if that's what is needed), and then the comment could be selected as one of the columns to display.

It has some drawbacks, of course. One is that you can't use the comment for anything else, should you wish to, and another is that you have to do it again if you update any libraries.

P.S. Personally, I'd go with someting like:

list LIBS: files pat #?.library lformat "version %s%s file full" | execute IN:

- and then just copy/paste the output from the Shell; for some reason I can't get it to pipe it into a file.

Best regards,

Niels

Go to top
Re: Dump drawer contents to text file with date file size and version number?
Just can't stay away
Just can't stay away


See User information
@nbache

Thanks Niels. Looks interesting.
I got what I needed with this command suggested by Daedalus.

SPat "version >> t:output.txt"#?

AmigaOne X1000.
Radeon RX550

http://www.tinylife.org.uk/
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project