Hi all, 

First a short introduction. I´m a noob learning to code, I started learning 
with "learn python the hard way" then switched to "Learn Python programing 
games with Pygame" which is much much better for raw begginers IMHO. 

Now I´m going throw "How to design programs" and I love both the book and 
Racket, which I see as much more useful for the kind of programing I want to 
do. I'm not looking for an industry job, just programing to hack some solutions 
for myself. 

In this case I want to create a mac app wrapper with a simple GUI so my son can 
start and stop a minecraft pocket edition server. He is able to do it with the 
command line, but I like the challenge as an exercise for my programming and 
design skills. 

The server is a php program that runs on the command line and that can be 
launched with the ./start.sh command.

So far I've managed to write this (the launching part, not working yet in the 
GUI part):

(require racket/system)
(require racket/base)

;convert string to path
(define my-path (string->path "~users/myuser/minecraft/start.sh"))

;check path
(if (path? my-path) "got a path!" (error "not a path"))



this works so far, but when I try to use 

(command my-path)

to launch the executable dr. Racket says this:
command: unbound identifier in module


I don't even know if what I want to do is possible (launching and controlling a 
PHP program with Racket), and what kind of mistake I'm making. Is command the 
appropriate procedure to run a program?. Could somebody please point me in the 
correct direction?. Thank you very much!

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to