Subject: mailing-list for TeXmacs Users
List archive
From : "Corey Sweeney" <address@hidden>- To: address@hidden
- Subject: getting direct access to shell
- Date: Wed, 15 Mar 2006 12:23:06 -0600
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=R2zbvwEJSu2elqXW+QDI1TbOZDH5+HSRaqY/4rwrlwFd49RCqJl9Xs+0G93OwL+KLvJuDjHpQQD08QKWwrE6pVxlXtwBWo14PTpC2K1VJOS30R+U8tgXQ4JeEJ2MawxH3tjpjTcdM47MwV6jNRiK5VlNVaprmXXi9hsJ1P3eLnc=
I would like to get a directory listing in my document by running ls through bash. I need to do it though bash, cause I don't really want to do a directory listing, but run a dynamically generated bash command. How would I go about this? I tried guile's open-port, which seems to only give me the ability to send text to bashes input, but not read bashes output. (i think it should allow both with the OPEN_BOTH switch, but I only get one write port. I tried that "multi-value stuff" to see if there was a seperate read port and that didn't seem to be it either) open-port* would work as it takes args for the program, and i could pass my input as a argument, but open-port* appears to have started in a later version of guile then we are using. It dosn't have to be though scheme. I just want the ability to type a bash command and have the result display in my document, (without seeing the command itself and other stuff (as happens in shell "sessions")). Hopefully something I can potentially later macro-ize or abstract.
Corey
--
((lambda (y) (y y)) (lambda (y) (y y)))
- getting direct access to shell, Corey Sweeney, 03/15/2006
- Re: [TeXmacs] getting direct access to shell, Henri Lesourd, 03/15/2006
Archive powered by MHonArc 2.6.19.