Skip to content

gocql package golang two file version in same install

getting this error when trying to run a go file (which should run) When I look at the documentation of go 1.7 I find that ClusterConfig does have a field ConnectTimeout. (go version = 1.7). If I go to the github.com directory in my go path I find a directory gocql. In this directory I find a file cluster.go w…

Wait for popen script to terminate in C

Is that possible with C to wait until the popen subprocess is finished? I have a script launched by a C daemon which will connect to a wifi network when an external signal is triggered. Here is my code for now : However, I’m not waiting for the subprocess to finish so when I’m closing the pipe, th…

/etc/fstab: parse error: ignore entry at line

I have scrip with function: After execution – mount returns me an error: root@xx255rs2sptry000001:~# mount -a mount: /etc/fstab: parse error: ignore entry at line 9. Same error if I’m trying to sed manually: I tried to close variables in “” – but no luck: echo “//$STORAGE_N…

ssh cronjob delete not working

I am new to SSH & cronjobs so probably I am doing something wrong. I am using a Google Cloud Engine for hosting my SSH Linux instance and I want to delete a snapshot by its name with a cronjob (I have also a create snapshot cronjob that works fine). So I wrote this script: This script should delete the

Replace white spaces with underscores within a file (bash)

I am currently writing a script that accesses another file using “mapfile” to put it into an array. However, the inputted file contains some white spaces, which the script reads as a new array entry. How do I replace the white spaces with underscores within the body of the file I’m bringing …