File: run

package info (click to toggle)
oxref 0.90.10-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 400 kB
  • sloc: cpp: 786; makefile: 141
file content (16 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int g_dryrun;       // set to 1 if envvar DRYRUN was set in main()


void runP(int testValue, string cmd)
{
    if (g_dryrun)
        printf(cmd, "\n");
    else
        system(testValue, cmd);
}

void run(string cmd)
{
    runP(0, cmd);
}