[sprog-users] Suggestion/Request: runable .sprog files?
Status: Alpha
Brought to you by:
grantm
From: Chris B. <ch...@je...> - 2005-06-29 00:47:46
|
Hi all, I'm starting to build a library (family?) of .sprogs. I was wondering how feasible it would be to make the saved .sprog files executable? That is: start the the saved files with some command like: #!/usr/bin/sprog --nogui --run - Adding that to the .sprog file doesn't seem to interfere with the YAML. But it looks like the .sprog is run by the shell: $ type sprog sprog is hashed (/usr/bin/sprog) $ head -4 t1.sprog #!/usr/bin/sprog -n -r - - Sprog - 1 - run_on_drop: 0 $ ls -l ./t1.sprog -rwxr-xr-x 1 chrisb users 652 2005-06-29 01:44 ./t1.sprog $ ./t1.sprog ./t1.sprog: line 2: -: command not found ./t1.sprog: line 3: -: command not found ./t1.sprog: line 4: -: command not found ... $ strace ./t1.sprog execve("./t1.sprog", ["./t1.sprog"], [/* 31 vars */]) = 0 strace: exec: Exec format error So how can I tell sprog to read its source from the file? -- Chris Benson |