Skip to main content

Search

Items tagged with: scripting


 
... show more


 
... show more


 
... show more


 

Article: How to Use the timeout Command on Linux.


by David McKay (Twitter: @TheGurkha), hosted by How-To Geek.

Preview of the article



The timeout command allows you to set a limit on the length of time a program will run for. But why would you want to do that? [...] timeout is part of the GNU Core Utils so Linux a
... show more


 

Article: Network Redirections in Bash.


by Anmol Sarma - software developer from Bengaluru ( #India ).

Preview/extract:

[...] it sends a UDP datagram containing a random number to port 1234 every 250 ms.

while true; do echo $RANDOM > /dev/udp/127.0.0.1/1234; sleep 0.25; done

I didn’t recall ever seeing a /dev/udp and so was a bit surprised that it worked.
Seemingly, a normal UDP socket was being created and written to using the regular sycall interface. That refuted my initial suspicion that some kind of a special file backed by the kernel was involved.
But who was actually creating the socket?
A peek at Bash’s code answered that question [...]

Tags: #linux #bash #ksh #scripting #script #networking #hacking #coding #code #codeanalyse #development #syscall #udp #tcp.


 
Gefälschte Meinungsumfragen sollten Trumps Wahlkampf helfen #Abstimmung #Betrug #DonaldTrump #MichaelCohen #Politik #Redfinch #Scripting #USA


 

Scripting API now in public beta


Play around with Minecraft’s insides!
Article word count: 276

HN Discussion: https://news.ycombinator.com/item?id=18636753
Posted by 20years (karma: 1865)
Post stats: Points: 95 - Comments: 57 - 2018-12-08T18:46:06Z

\#HackerNews #api #beta #now #public #scripting
Article content:

... show more


 
Hi folks,

I have a small project in my hands: Rock'n'Play

It is a very basic #shell #frontend to run #emulators and #Linux #games on a #debian #soc #board, #Rock64.
I need a place where save the #code in order to b... show more


 
Hi guys, this is the first time I asked for some technical issue here so let's what is going to happen.

Basically it should be something pretty easy but this is the typical situation where all my limits come out...

I am trying to create my own Retroarch box based on Debian minimal, it will be very essential, without running DE or WM. Said that I was able to log in console automatically, at the point I will launch my front-end based in whiptail that I will control with the gamepad but before I need to understand how to setup the menu.

Basically what I have is this:
#!/bin/sh 
whiptail --backtitle "ROCK'N'PLAY" --fb --nocancel --ok-button "run" \ 
--title "Rock'n'Play Menu" \ 
--menu "Choose an option and Rock!" 18 60 6 \ 
1 RetroArch \ 
2 Restart \ 
3 Shutdown \ 
3>&1 1>&2 2>&3

Now I have to launch retroarch with 'startx retroarch', doing restart with '/bin/systemctl restart' or doing shutdown with '/sbin/poweroff' but I can't understand how to apply these commands. I found several examp... show more