Hallo my friends, I'm programming in c++ under an UNIX machine and I would like to get the name of the machine and put it in a variable of type char*. How can I do it?
I know I can do: system("hostname") but the return value is an integer and I would want to get the name.
Thanks...
Oh, thanks a lot for your recommendation, but it was only an example, for knowing whether is a newer file I will us the newer command.
newer file-name
Get the file only if the modification time of the remote file is
more recent that the file on the current system...
I wonder why I have problems with get command if I write
for file in 'ls'
do
get $file
done
The error message is: We only support non-print format, sorry.
?Invalid command
(remote-file) (local-file) usage: get remote-file [...
I would like to make a script which for each file of the directory, put the name of the file in a variable and then get variable. I can not use mget * because I will only need newer files and I have to know the name of the file. I wish you can help me. Thanks a lot. Jose.
for each file of the...
newer file-name
Get the file only if the modification time of the remote file is
more recent that the file on the current system. If the file
does not exist on the current system, the remote file is
considered newer. Otherwise, this command is...
I thought that maybe with the command newer and one script we could approach to the final solution. The problem is that I want to do it for multiple files and I need the file name for the newer command.
Hallo, I want to make a mput via ftp but if there is a newer version of the file in the receiver already I do not want to transmit the file and I will start with the transmission of the next file. Can anybody help me? Thanks in advance. Jose.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.