Re: howto linux
matt <galaga-wUU9E3n5/[email protected]>
| Newsgroups | gmane.comp.games.mame.advancemame.user |
|---|---|
| Message-ID | <000b01c4ba20$74feec40$0800a8c0@pacman> |
advmenu && init 0 works well!!! thats alot!!!!! it now powers down the pc when the advmenu is exited thanks so much!!!! > Matt, > > I assume you're using bash as your shell, so: > > advmame || init 0 > > should run advmame and do init 0 only if advmame returns an error > condition (I haven't checked, but I assume the return values from > advmame are sensible). Alternatively, > > advmame && exit > > should exit the script if advmame exits with a successful error code (zero). > > You can see this working with the following examples: > > ls .... || echo "no" > ls .. && echo "yes" > > Cheers, > Michael. > > ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ Unsubscribe at https://lists.sourceforge.net/lists/listinfo/advancemame-users