Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: ttz on May 03, 2015, 12: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.
-
tce-ab
-
Oh! While not exactly what I was looking for, it seems to do the job. I will play with it.
Thanks
-
info files are only used by the apps browser.
To look at them with 'less' you would need to download them first.
-
@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!
-
Keep in mind that tce-ab will delete *.info files after displaying them.
-
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 (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
-
@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
-
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!