[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting mkdir command result
[Thread Prev] | [Thread Next]
- Subject: Re: Getting mkdir command result
- From: Rocky Wang <juster.wang@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 12 Jan 2011 16:27:36 +0800
- To: libssh@xxxxxxxxxx
2011/1/12 Nikhil Agrawal <mrnikhilagrawal@xxxxxxxxx>: > Hi, > > I am using libssh to run mkdir on remote machine. In case mkdir fails, I > want to receive/get error in my client so i can take measures. I am getting > OK as return code in all cases and don’t get to know if mkdir successfully > ran or not. Please Suggest. > > Thanks! > hi Nikhil how about take the return code of the command , and judge if it equals to 0 mkdir: cannot create directory `xxx': File exists $echo $? 1 Juster.Wang
Getting mkdir command result | Nikhil Agrawal <mrnikhilagrawal@xxxxxxxxx> |