Maybe this could help.
john2.c
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
int main()
Type: Posts; User: jc2020
Maybe this could help.
john2.c
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
int main()
Cron really can run anything. Same as Salem solution - - && ./a.out.
First I want to thank all of you. I learn more then I ever known about c and life (sorry for crying out loud). I believe the code I posted caused most or all of my problems. All of that unneeded...
Salem, why is your txt files inside crontabs? Should it be the other way around? Was there a problem with cron running all three of your c-files inside cron like it does for script and batchs? ...
I knew not to challenge the light, but I had to take a crack at it since I know this opportunity may never arise again. It was just a moment of fun. You remember so much and I think you have a...
laserlight, I know what you mean but like you said:
But It’s near the same if someone said:
You either say day for day and night for night. Midnight is night is the middle of the night.
...
Why are we talking down on your fellow member?
Allow me to pick into my own thread:
I’ll comment on this myself as an outsider who may understand common people. jc2020 are you saying you...
Yep, it’s my terminology and even my English that gets in the way. Thanks for the reminder laserlight. I’ll work to do better.
Hello cboard,
My question(s) is more OS related than C because I’m trap at not knowing what CRON full capabilities are. I have 3 well crafted c-files (id1 - id3.out) that works standalone without...
This may not be what you're looking for but strlen works well.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#define BUFFER_1024 1024
There is just too much out there for so many difference flavours. Just for the record, everything here work for FreeBSD-10, 11 and 12 running mysql56 at minumum and should be the closest for all of...
I think I best to read into the links and info that you provided before I ask anything more about it. But for now I see no reason to fear password in cron because there are no users of that jail and...
Thanks for the detailed information with keywords that I should been using. I knew nothing about that type of API.
First of all I am sorry I use in the word SQL. I’m using mysql. Now I know...
Hi laserlight,
I always wanted to learn how to automate my website using a database. There are easier ways to do it but that is not what I am after. The time of day and the temperature at dusk...
Hello cboard,
I have a small website for my business on DO. It has been a lonely experience, so I been wondering how to automate a few simple things that would keep a visitor attention for a...
I think it's the way the terminals works. They align data to the left. So when I add zero to the front every single line gets one. I threw every thing Alex had at it. It workd for char becaisr...
I was unaware that format specifiers could do all of that. I'm reading Alex's Printf Format Strings already. Between that and pointers I'm going to study well. Thanks so much @laserlight.
I just can't figure what is missing or how to fit it in.
int i = 8;
char line = i + '0';
if(line < 5)
{
fputs(destination, fptw);
}
This is my first time sending any things using a cell phone. My fingers don't fit.
I have a ton of numbers that i am trying to make changes to.
Acct.txt
89896
7874
90000
9998
80234
I use to think most programmers were men, but since trying to be one myself, I realize there are a great number of women programmers out here and you have to be careful not to use words like dude or...
Got it!, now I can spend my time learning C the proper way. My project will be completed before this week is out. Thank you everyone. Thank you @Salem, for helping to get me started. Your code...
I tested this with 1, 2 and 20 character length. Same results for each:
Something Might be Out of Order:
fseek(fptr,0, SEEK_SET); fgets(buf1, 0, fptr);
result = [] ...
fget() is doing something, I get no error but the character (I) did not enter the buffer. What am I missing here?
#include <stdio.h>
#include <string.h>
int main() {
FILE...
@flp1969 Do that mean I can print result to file? I tried fgets. Maybe I used it incorrectly. I’m going to read about fgets() now!
Maybe something would include the function fseek() to make...
PS:
@GReaper, I usually open files this way. I picked up this type coding from a thread here at the cboard. I going to build around this tonight. IIRC it work for something when the standard...