WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: read support files in term (w/o apps browser)  (Read 2658 times)

Offline ttz

  • Jr. Member
  • **
  • Posts: 82
read support files in term (w/o apps browser)
« on: May 03, 2015, 03:36:37 PM »
How can I view support files on cli via cat, less, or vim?

From: http://wiki.tinycorelinux.net/wiki:creating_extensions:
"5. write & place support files: dep, info, list, and md5 hash"

I just want to be able to cat to term, or view in less or vim, the content of support files, especially info - this is like asking to view a man page. The above ref suggests, to me, that the files are distinct and I should be able to view without apps browser, but I can't find them.

The closest I can get is: ls /mnt/sdb1/tce/optional/

There, I see bits like: Xorg-7.7-bin.tcz.md5.txt, Xorg-7.7-lib.tcz.dep

But where is 'info'?

Ultimately, I should be able to list tcz's and select any of the support files to read in cli.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: read support files in term (w/o apps browser)
« Reply #1 on: May 03, 2015, 03:46:40 PM »
tce-ab

Offline ttz

  • Jr. Member
  • **
  • Posts: 82
Re: read support files in term (w/o apps browser)
« Reply #2 on: May 03, 2015, 03:58:12 PM »
Oh! While not exactly what I was looking for, it seems to do the job. I will play with it.

Thanks

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: read support files in term (w/o apps browser)
« Reply #3 on: May 03, 2015, 04:20:31 PM »
info files are only used by the apps browser.
To look at them with 'less' you would need to download them first.

Offline ttz

  • Jr. Member
  • **
  • Posts: 82
Re: read support files in term (w/o apps browser)
« Reply #4 on: May 03, 2015, 04:34:59 PM »
@gerald_clark

"To look at them with 'less' you would need to download them first."

Now we are closer to the mark. I'll work on both downloading and tce-ab - now  I have some direction.

Hey, thank you for your time!

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: read support files in term (w/o apps browser)
« Reply #5 on: May 03, 2015, 05:25:04 PM »
Keep in mind that  tce-ab  will delete *.info files after displaying them.
Download a copy and keep it handy: Core book ;)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: read support files in term (w/o apps browser)
« Reply #6 on: May 03, 2015, 05:42:38 PM »
Additionally..
If you have a web browser you may also view the info file here

http://tinycorelinux.net/6.x/x86/tcz/extension_name.tcz.info

where it's possible to copy the text into a new local file. 

but if you have online capability then info files are always available to view via tce-ab or the Apps gui
Just a thought

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: read support files in term (w/o apps browser)
« Reply #7 on: May 03, 2015, 06:02:40 PM »
@gerald_clark

"To look at them with 'less' you would need to download them first."

Now we are closer to the mark. I'll work on both downloading and tce-ab - now  I have some direction.

Hey, thank you for your time!

Hi ttz,

All the tce scripts are in the /usr/bin directory. Most of the scripts start with "tce" except for search.sh.

I have just done something similar but used a web interface instead of command line. It was nice to find someone had already done most of the code and it was just a matter of using the scripts directly or borrowing segments of code for my own use.

regards
Greg

Offline ttz

  • Jr. Member
  • **
  • Posts: 82
Re: read support files in term (w/o apps browser)
« Reply #8 on: May 05, 2015, 11:23:01 PM »
Follow up:

I've spent a bit of time with tce-ab and decided it does the trick; it is close enough for now.

Thanks to all for replies!