Programming and Scripting :: Embedding Commands



Have you tried doing this with the OPTIONAL in frugal?  I'm finding it to work well.  You download the apps into /mnt/hda1/optional using mydsl, then you use the right click menu to install them only if you need them.  You have to add the path to the opt in grub, but that's about it.  Your approach works (obviously!), but it's more to re-create if you have to reinstall or something.
This is a nice thread, good information is provided. I have one comment to make concerning stream programming (a Unix concept from decades ago) and that "&" shell directive. The meaning of "&" is [background this process]. Which is implemented as a "fork" system call. Unix is a stream environment because everything is launched inside a process, the "fork" call instructs the batch command to launch a new process for the command. This is why the calling process continues without delay.

So, to think of the application waiting for the first call to complete before continuing is technically wrong, and leads to problems in design as your batch programming progresses. Specifically, when you fork a new process (to load the game), the new process looses all contact with the parent process (your script) and the next call (to execute the game) fails because as far as it is concerned, the game is not loaded yet. Yes, it is loaded but within the separate (forked) process, and therefore not available to the parent process.

Technical I know, but some day you'll appreciate the nuance.


original here.