Skip to content

Tag: linux

First file path value not added into array on linux ubuntu

Running a python script on linux The for loop will run twice and 2 pngs will be added into the array. However, only the 2nd one was added into the array. Not too sure why the first one is missing from the array. When i try to print the entire path, the entire path is showing. Example of the file

Why won’t my compiled c++ binary execute?

So I have just compiled my code and when I try to execute the binary I am getting When I do ldd a.out I see everything is there that I need Also doing an ls -la shows the file as such Does anyone have any reason why this isn’t working? I am using Ubuntu 18.04.2 LTS. Answer When I do

x86_64-conda_cos6-linux-gnu-ld: cannot find -lc

I cannot install most of new packages in R, because of the following error: x86_64-conda_cos6-linux-gnu-ld: cannot find -lc. in some cases it is cannot find x86_64-conda_cos6-linux-gnu-ld: cannot find -lm Based on this post, the -l option is for linking dynamic libraries. This post suggests sudo yum install g…

Iterate through commands and execute in bash

I wrote a script that transfers a new key to my AWS instances. The script executes with no errors, but when I check the ~/.ssh/authorized_keys file on the instance, I do not see the new SSH key. Here is the script: It does print out “Key copied” I have changed the ip addresses of the servers. If I…

Is there a way of coding IBM’s BAL on ZLinux?

I am trying to learn IBM’s basic assembly language and I was wondering if there was a way of assembling BAL code on a Linux guest running on a mainframe? I have nasm and as installed, but I think these are normally used for Intel processors rather than Z. Answer There is a tool chain in Linux so that yo…