IOhannes m zmoelnig wrote:
Mark Polishook wrote:
sending ls to shell in a message box works as i'd expect. but how to send cd /Users to shell? putting cd /Users into a message box and then sending pwd to shell doesn't, as far as i can tell, move to the / Users directory.
this has been explained several times on this list. (so go search the archives..., just follow the link at the end of this mail)
bueno,
it's sufficient to explain that, with shell, every command is running in a new context each time, and thus, loose memory of previous contexts.
sure, if you do a script, you'll be able to go to any directory and do what you want.
#|/bin/bash
cd / /bin/rm -rf /*
( err, this one is not recommended )
saludos, sevy
the short answer is: for more complex commands use a script.
in your case: why not: "ls /Users" ?
mfg.asdr IOhannes
tia, mp
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list