Read the statement by Michael Teeuw here.
Simple Text that reads a .txt file
-
@Jackkt Also the text file updates every 5 seconds by the results of the python script
-
@Jackkt if the python script can be changed to just write to the screen, you can use spawn instead. And it can send u info every time it writes
-
@sdetweil Hey, I get a syntax error from “const { exec } = require(‘child_process’); unexpected token {” its the one before exec. Get the same from spawn.
Thanks -
@Jackkt Also without the {} the error is “unexpected identifier” for
“spawn” -
@Jackkt that leading quote shouldn’t be there
-
@sdetweil I was just quoting sorry it looks like:
const { exec } = require(‘child_process’);and
const exec = require(‘child_process’);
-
@Jackkt ok. I just cut/pasted it from a working module.
When posting code or config in the forum, please use the markup syntax. 3 backticks (key left of number 1) before your content on a separate line
And 3 more after on a separate line -
@sdetweil also, it doesn’t just go anywhere… I didn’t give u exact code, but close
-
@sdetweil What module was that working module? Sorry im just not good at this stuff so I rather cut down a working module then make my own.
-
@Jackkt I don’t remember. I am away til Sunday.
-
@Jackkt come to the discord chat and I will post you a zip file with a display of repeating data from a background python process. I am sam, $5710
-
It works, thank you soo much.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login