Hello, I already post this question but i don't have any answer.
I look at how to connect at a FTP Server and compare if this file name for example "OK" or not.
Thanks for your time
Hello, I already post this question but i don't have any answer.
I look at how to connect at a FTP Server and compare if this file name for example "OK" or not.
Thanks for your time
If you keep asking and get no replies, perhaps you need to ask a better question.
How To Ask Questions The Smart Way
For example,
Which OS are you using?
Which compiler are you using?
Are you using an FTP library such as libcurl or are you rolling your own code using sockets?
> and compare if this file name for example "OK" or not.
What does this even mean?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Hello,
Sorry for my English,
So I explain the purpose of our program:
Compiler: DEV C ++ or codeblocks
OS: Using on a Windows 7 but compiling on Windows 10
Details:
Start -> Log in every 30 minutes on the ftp -> if on, then execute this command "shutdown -s 30 (for example)"; if not, then do nothing
As u can see, normally we don't need library's
Thanks a lot for your help
> if on, then execute this command "shutdown -s 30 (for example)";
FTP stands for File Transfer Prototcol. It transfers files between to machines.
If you want to issue commands to a remote shell, you need something else.
By "on", I assume you mean the remote machine is up, and is able to accept network connections.
Rebooting the remote machine every 30 minutes seems like a DoS attack to me.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
hello
no, it's not a DDOS hack it's because we can' stay always connected on the ftp, and
i forget to tell this :
Start -> Log in every 30 minutes on the ftp -> Check if there is marked on in the file.txt --> if on, then execute this command "shutdown -s 30 (for example)"; if not, then do nothing
thanks
Do you want a drawing ? Because, with my english, it's hard to explain to u...
Sorry about that
Well you can script the command line FTP program to fetch a given file for you.
Microsoft Windows Command-Line FTP Command List
You can then examine the file locally to see if it contains your "on marker" is present.
How you then "shutdown -s 30" on any machine (other than the one you're on) is anyone's guess. Perhaps some remote admin capability (I'm not a windows user if I can avoid it).
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
But I am "noob" in prog c or c++. Can you help me about the code ? Because i want a executable application, and i don't know where to start with my code...
I suggest you start learning some basic programming skills then.
Because in your current state of noob-ness, your contribution in "Can you help me about the code ?" is basically going to be zero, and someone else (not me) is going to wind up doing all the work.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
No i don't say this... Just help how can I use "Microsoft Windows Command-Line FTP" in my code
Up ! please
Need help please....
Just how I can use the fp libary..
Thanks a lot
Best regards
C Tutorial - Learn C - Cprogramming.com
You have yet to ask a question that makes sense to me.
I suggest you find a programming site in your native language or at least one you know better than English.
Tim S.
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
Try libcurl. https://curl.haxx.se/libcurl/
If you're a newbie to c, why not try Python programming instead. There are many Internet networking books on python. Using ftp libraries in c seems tedious if you're trying to perform small tasks.
Ok Thanks, i gonna try this !