WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: symbol to make a script continue  (Read 1863 times)

Offline P5music

  • Full Member
  • ***
  • Posts: 167
symbol to make a script continue
« on: October 06, 2010, 08:25:22 AM »
Hello,
which is that ("&" ?) symbol that's useful to execute a command without blocking the script, and what's the syntax?
Thanks very much

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: symbol to make a script continue
« Reply #1 on: October 06, 2010, 08:34:23 AM »
This is a basic Linux question, and not TC specific.
The answer depends on where the '&' is in the command line.
For example:

make install > install.log 2>&1 &

The first '&' is part of an output redirect catenation command.
The second '&' detaches the command from the terminal so it can run in the background.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: symbol to make a script continue
« Reply #2 on: October 06, 2010, 09:52:52 AM »
man bash

Search for "background"
The only barriers that can stop you are the ones you create yourself.