| Author |
Message |
barrychabala
Joined: Jul 15, 2008 Posts: 2 Location: New Jersey
|
Posted: Tue Jul 15, 2008 9:56 pm Post subject:
command line chucK for a newbie |
 |
|
| im new to chuck - hi all. i am able to chuck shreds with the audicle & miniaudicle, but command line is giving me problems. i can chuck a shred directly but if i chuck --loop, i cant get anything to run. and, being new to terminal (OSX 10.4.11) can someone explain " %> " at the start of every line in the documentation? is that the prompt that is suppose to be there or do you type that? when i type that i get this - "-bash: fg: %: no such job". any help would be greatly appreciated! |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 6716 Location: The Hague, NL
G2 patch files: 3
|
Posted: Wed Jul 16, 2008 1:40 am Post subject:
Re: command line chucK for a newbie |
 |
|
| barrychabala wrote: | | im new to chuck - hi all. |
Hi, Barry!
| Quote: | | i am able to chuck shreds with the audicle & miniaudicle, but command line is giving me problems. i can chuck a shred directly but if i chuck --loop, i cant get anything to run. |
Yes, that's right. "chuck --loop" won't return you to the prompt. At that stage you can open a second terminal (bash) window and you type "chuck + my_file.ck" there. This adds that file to the virtual machine you just set up. This means you have one window where chuck runs and reports on anything that happened (the first) and another window where you can give commands like adding and removing shreds.
| Quote: | | and, being new to terminal (OSX 10.4.11) can someone explain " %> " at the start of every line in the documentation? is that the prompt that is suppose to be there or do you type that? when i type that i get this - "-bash: fg: %: no such job". any help would be greatly appreciated! |
The "%>" is just the prompt, it means you can give commands, on my Linux box here the bash prompt is a "$>", when you log in as root (to do administration) it'll likely look different, for example "#>". This is perfectly normal and nothing to worry about.
I found you a manual; http://www.ss64.com/osx/
Useful commands for chucking;
ls (lists the contents of a directory)
cd (change working directory)
rm (delete a file)
cp (copy a file)
pico (gets you a small and simple txt editor)
That's probably most of what you need for chucking. _________________ Modern technology offers an endless field day to any deviant strains in our personalities. --J.G.Ballard |
|
|
Back to top
|
|
 |
ilSignorCarlo

Joined: Sep 17, 2007 Posts: 27 Location: Bologna
|
Posted: Wed Jul 16, 2008 1:48 am Post subject:
Re: command line chucK for a newbie |
 |
|
| barrychabala wrote: | | i can chuck a shred directly but if i chuck --loop, i cant get anything to run. |
The command "chuck --loop" make ChucK running and waiting for you to add shreds. You can do it by opening another terminal window and then adding from ther with:
chuck + foo.ck (supposing you have a foo.ck file)
You can also put ChucK in background, letting you to use just one window. You have to use the same command, but with the & at the end, so:
chuck --loop &
I've never tried this on a Mac, but it should work.
| Quote: | | and, being new to terminal (OSX 10.4.11) can someone explain " %> " at the start of every line in the documentation? |
I think it represents a general prompt shell.
Anyway you can type "chuck --shell" to enter the ChucK shell. From here you add shreds just typing:
+ foo.ck
I think the "loop" mode is better  _________________ Self-referential phrases, like this one, are not so funny or good for a forum signature. |
|
|
Back to top
|
|
 |
barrychabala
Joined: Jul 15, 2008 Posts: 2 Location: New Jersey
|
|
|
Back to top
|
|
 |
|