           callback? err
           log.error err
         else
-          log.debug ".tmp dir is there"
+          # log.debug ".tmp dir is there"
           callback? null
     else
       if stat.isDirectory()
-        log.debug ".tmp dir is there"
+        # log.debug ".tmp dir is there"
         callback? null
       else
         log.error ".tmp file is found where we need .tmp directory. deleting.."

  #   command  : String #bash command
  #
  # START
  # 1- create tmpdir /Users/[username]/.tmp
  # 2- create tmpfile /Users/[username]/.tmp/tmp_[uniqid].txt
  # 3- write the command inside the tmp file
  # 4- bash execute the tmp file with su -l [username]
  # 5- delete the tmpfile.

  {username,command} = options


    if error?
      callback? error
    else

      chars = ";&|><*?`$(){}[]!#"
      reg = createRegExp chars
      reg.test command

      if containsAnyChar command,chars
        prepareForBashExecute options, (err, filename)->          
          unless err
            execute {filename,username},callback
          else
            log.error err
            callback err
      else
        execute {command,username},callback








