-
Senior Member
registered user
Re: understanding klik

Originally Posted by
rol
Can I access apps via command line e.g. latex?
Yes you can, but instead of running "latex" you run "~/.zAppRun ~/Desktop/latex.cmg latex" and add arguments to latex as normal.
What happens is zApprun mounts the cmg file and runs the wrapper script inside it which in turn runs the program name you supplied from within the cmg.
One other thing you can do is make a simple script like
Code:
#!/bin/sh
CMG="~/Desktop/latex.cmg"
~/.zAppRun $CMG $0 $@
Make a directory called ~/klik.bin and put this file in there as latex.run
Make a smylink for each program in the latex.cmg that you want to run from the command line so to run latex and latexfoo from the latex.cmg you would do:
Code:
cd ~/klik.bin
ln -s latex.run latex
ln -s latex.run latexfoo
Finally you need to add ~/klik.bin to your path e.g.
Code:
PATH=~/klik.bin:$PATH
Now from the command line you should be able to run latex or latexfoo. If you want to use the same technique on more cmg files, you need to make a copy of the latex.run and change the CMG= line to reflect the correct cmg to use and then make the symlinks to this file for any programs you want to be able to run from the cmg.
Hope this helps.
Similar Threads
-
By toecutter in forum Klik
Replies: 3
Last Post: 12-10-2006, 09:45 PM
-
Replies: 7
Last Post: 03-14-2006, 12:04 AM
-
Replies: 210
Last Post: 12-04-2004, 03:04 PM
-
Replies: 0
Last Post: 11-28-2004, 08:59 PM
-
By Sgeo in forum General Support
Replies: 1
Last Post: 11-25-2004, 04:20 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Vintage Apple II Avant-Garde Creations Super Shape Draw And Animate 1981
$295.00

Apple Macintosh Classic M1420 Vintage Desktop Computer Model Macintosh Classic
$100.00

Vintage Apple Macintosh Plus 1MB - M0001A W/ Keyboard, 2 Mice, 800K HD, + More
$300.00

Vintage Apple Macintosh Plus Desktop Computer - M0001A
$150.00

LARGE LOT Vintage Apple Macintosh Mouse Cables Accessories SCSI etc - UNTESTED
$80.00

Vintage Apple II Arcade Game Galactic Wars Apple Computer NOS Sealed
$125.00

Vintage Apple Pro Mouse M5769 Wired Optical USB White/Clear
$24.99

Inside Macintosh Promotional Edition Vintage Apple Developer Book 1985
$32.00

Vintage Apple Multiple Scan 15av Display Monitor M4681
$299.99

Vintage Apple Monitor IIc 9" Green Monochrome 06/1985 A2M4090 October 1984 Stand
$275.00