Skip to content

Cronjob is not running in Linux

So I am trying to automate backups to S3 buckets through linux. The script I am trying to run is The cronjob to run that script is 44 11 * * * ./backup.sh However whenever I try to run the backup script (by updating cronjob) it does not seem to be working at all. Any ideas why it will not

How can I use python 3 tkinter in Linux?

I tried the following program in Win10, it works But I want to use it in linux mint and it display nothing (it display a window with a button on my win10) from tkinter import * tk=Tk() btn= Button(tk,text=”ttk”) btn.pack() I want it display a window with a button on my linux mint Answer You need t…

Linux cut, paste

I have to write a script file to cut the following column and paste it the end of the same row in a new .arff file. I guess the file type doesn’t matter. Current file: The output should be: how can I do this? using a Linux script file? Answer Brief explanation, ^([^,]*) would match the first field which…

Get all mount points in kernel module

I’m trying to get all the mount points in a kernel module. Below is what I’ve come up with. It segfaults because of the strcat. Is this the correct way to get the mount points? Will this work? if so how do i fix the segfault? If not, how does one go about getting the mount points in a linux

How to undo “mv file -” command in Ubuntu [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …

How to replace lines that contains integers by using sed

I have a file that contains two fields. The first field may or may not contain an Integer. If it contains an integer and a dot follows the integer I would like to manipulate part of second field. So As an example: I couldn’t make it since I have very limited knowledge in regex. I would be very appreciat…