On Mon, 2006-03-13 at 17:08 -0500, Timothy Snyder wrote: > Dean Armbruster wrote on 03/13/2006 04:33:27 PM: > > > PCPERFORM can do multiple commands. Separate them with a linefeed > > (char(10)). > <snip> > > This is on HP-UX with the Bourne shell. I don't know about other > > shells, other unix, or Windows. > > Unfortunately, this won't work on Windows. Neither will the semicolon as > proposed in a previous posting. On Windows you can use an ampersand as a > line separator. Of course, if you use that same construct in UNIX you'll > get totally different results (possibly amusing, possibly frightening, > definitely incorrect), since anything preceding the ampersand will be > launched as a background process with the rest being tossed.
But what if we use TWO ampersands?! It's so crazy, it just might work: cd something && runcommand In both DOS and Bourne this command will change directory to something and, if that succeeded, execute runcommand. How you get 'something' to be '\' in DOS and '/' in UNIX is up to you. Which is to say, I don't think it's possible. Thanks, Michael Doyle Linux Administrator / Developer AMO Recoveries ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
