Jump to content

Recommended Posts

Posted

I'm trying to run this: 

$CMD = @ScriptDir & "\putty -ssh -pw pwd user@" & $Final & " -m " & @ScriptDir & "\Comandos\" & $Comando

This will execute a command file that look like this:

/etc/init.d/nfcepack_agente stop

/etc/init.d/nfcepack_agente start

 

But I'm trying to put some warning text...can I put some kind of comment header, turn the header into a var, and don't mess with the commands execution? something like:
 

$alert = FileRead(etc.txt,1)

 

 

#WARNING! This will stop the nfce services! Are you sure?

/etc/init.d/nfcepack_agente stop

/etc/init.d/nfcepack_agente start

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...