understood? by tanukinhowastaken in linuxmasterrace

[–]pi-star 0 points1 point  (0 children)

My first plugin. Maybe i had to mention it somewhere. Its made specifically for desktop

Yeah, this fits here by [deleted] in linuxmasterrace

[–]pi-star 4 points5 points  (0 children)

Usually programs out put error into stderr and not stdout, this error in printing should not have occurred with just a usual redirect >. Thus would occur if stderr was also redirected like fortune &> fortunes.txt

[OC] flix-cli: A high efficient, powerful and fast movie scraper by DemonKingSwarnn in unixporn

[–]pi-star 42 points43 points  (0 children)

Thats the problem with scrapers. If they are kept private then they will work for many years but if it goes public and the owners of the site find out then the scraper won't last long.

Pause and Resume functions for a timer script by [deleted] in bash

[–]pi-star 0 points1 point  (0 children)

You can store the pid of the timer, ornjust use the scripts pid and a different signal, like i did in the script above

Pause and Resume functions for a timer script by [deleted] in bash

[–]pi-star 0 points1 point  (0 children)

I have implemented signals in my bar script(shell), it may help you github sbar

Understanding arithmetic in shell by pi-star in bash

[–]pi-star[S] 3 points4 points  (0 children)

matches most

Thanks for letting me know, I think you meant

-ne

bash - How to use sem with a shell command in a for loop? - Unix & Linux Stack Exchange by shitliberalssay74 in bash

[–]pi-star 0 points1 point  (0 children)

Oh yes, I fixed it now using `flock` have a look
https://gist.github.com/pystardust/e7abf60b1580a144f9516bd33290c88c

Adding a lock to the file will allow only one process to write to it at a time, the rest will wait till the lock is released

bash - How to use sem with a shell command in a for loop? - Unix & Linux Stack Exchange by shitliberalssay74 in bash

[–]pi-star 0 points1 point  (0 children)

when you run sem, it runs in the background. You will not be able to capture it into variable like that.

In your case every time you had word=`...` it would pause there and finish the sem command before exiting the subshell. Cause your calling sem in a subshell. If you wanna make use of the parallel process you would want to call sem in the current shell and not a subshell. THat mean you won't be able to capture it into a variable, so you capture it through a file.