News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
FLTK and ffmpeg
Author Message
Juergen
Member
***


Posts: 81
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
RE: FLTK and ffmpeg

mikshaw Wrote:

Quote:
>/dev/null & echo $!"

Looks like this is where I was going wrong.
I'd tried "urxvt & && echo $!" and "urxvt &; echo $!", which choked, and "(urxvt &) && echo $!", which echoed nothing.
I didn't know using a single "&" would separate the commands, but that makes sense to me now.


All control operators terminate a command. Control operators are "|" "&" "||" "&&" ";" ";;" "(" ")" and a new line.

You can also write someting like os.execute("cmd1 \n cmd2 \n cmd3") or use the ";" operator to separate two commands, but you can't use two control operators together (except for newline or the subshell operators). The || and && operators also require two expressions (expression1 || expression2) which cmd& can't be because it is executed in the background and can't give anything back.

Actually the bash manpage isn't that bad. If you open it and go down a few paragraphs to the "DEFINITIONS" section you'll see it is pretty easy. Although you should be aware that bash is only a bourne compatible shell and is a mix of Korn shell, Bourne shell and POSIX shell (which is also a mix). So not everything in that manual applies to other shells.

Juergen

04-08-2008 11:01 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
FLTK and ffmpeg - dvw86 - 04-06-2008, 04:25 AM
RE: FLTK and ffmpeg - mikshaw - 04-06-2008, 11:21 AM
RE: FLTK and ffmpeg - Juergen - 04-07-2008, 01:06 AM
RE: FLTK and ffmpeg - dvw86 - 04-07-2008, 02:31 AM
RE: FLTK and ffmpeg - Juergen - 04-07-2008, 03:13 AM
RE: FLTK and ffmpeg - mikshaw - 04-08-2008, 12:20 AM
RE: FLTK and ffmpeg - dvw86 - 04-08-2008, 02:33 AM
RE: FLTK and ffmpeg - Juergen - 04-08-2008, 03:27 AM
RE: FLTK and ffmpeg - Juergen - 04-08-2008, 03:44 AM
RE: FLTK and ffmpeg - mikshaw - 04-08-2008, 04:38 AM
RE: FLTK and ffmpeg - dvw86 - 04-08-2008, 09:30 AM
RE: FLTK and ffmpeg - Juergen - 04-08-2008 11:01 PM
RE: FLTK and ffmpeg - Juergen - 04-08-2008, 11:18 PM
RE: FLTK and ffmpeg - JohnMurga - 04-09-2008, 07:25 AM
RE: FLTK and ffmpeg - JohnMurga - 04-10-2008, 06:53 AM
RE: FLTK and ffmpeg - Juergen - 04-10-2008, 07:39 AM
RE: FLTK and ffmpeg - JohnMurga - 04-12-2008, 05:01 AM
RE: FLTK and ffmpeg - JohnMurga - 04-10-2008, 10:48 PM
RE: FLTK and ffmpeg - dvw86 - 04-11-2008, 04:32 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: