File: nextcommand.cc

package info (click to toggle)
stealth 4.04.00-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,540 kB
  • sloc: cpp: 2,759; sh: 151; makefile: 111; ansic: 52
file content (16 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "integrityscanner.ih"

void IntegrityScanner::nextCommand(ostream &out, string const &command)
{
    m3 << "nextCommand: inserting\n" << command << "\n"
                "and: echo " << d_sentinel << " $?" << endl;

                        // run the command, then 
                        // echo the sentinel and returnvalue
    out << command << "\n" 
           "/bin/echo \"" << d_sentinel << " $?\""  << endl;

    if (!out)
        fmsg << "Inserting command `" << s_firstWord[0] << "' failed." << 
                                                                        noidl;
}