#include <stream.h>
#include <string>
#define MAXLINE 80
typedef char *String;

using namespace std;

void executeBackground (String cmd)
{
  string mystr(cmd);

  cout << "inside executeBackground \"" << mystr << "\"" << endl;

  size_t ip = mystr.find("pwd");

  if ( ip  != string::npos) {
    string path = getenv("PWD");
    
    cout << "current working dir is " << path << endl;
  }
  else if ((ip = mystr.find("<")) != string::npos){

      cout << "found delimiter at " << ip << endl;
  }
  else {
    cout << "no special string found\n";
  }
}
