I have a script that runs one command. Based on that result, I can run the next command. Steps:run first script it puts me in global then from global I will run the next command.
First command:
$stream = ssh2_exec($connection, 'config global');
After this result I should run this cause I need to go into global
$stream = ssh2_exec($connection, 'get hardware cpu');
相关问题
- JavaScript File Transfer SSH
- Why does this bash script work at console but fail
- SSH Fingerprint not authorized on Heroku after git
- Override yml configuration in spring-boot with com
- (Scp - Permission Denied (Public Key) [closed]
相关文章
- Check if directory exists on remote machine with s
- What is the difference between execl and execv?
- Git Clone Fails: Server Certificate Verification F
- Test if File/Dir exists over SSH/Sudo in Python/Ba
- Can't access AWS CodeCommit with SSH
- socket() returns 0 in C client server application
- Shell execution: time vs. /usr/bin/time
- PowerShell Pass Named parameters to ArgumentList
you can do like this