Skip to content

Tag: path

Running script in crontab–reboot: command not found

I’ve set a script in my root crontab that is supposed to restart my machine with the reboot command. However, I am getting a reboot: command not found despite the fact that reboot is in the root user’s path. My script: root user crontab: …yes, this is only a temporary workaround while I figu…

Amcharts images “304 Not Modified” error

I’m getting 304 error when AMCHARTS images are requested to load. Odd thing is that it works locally on my PC but doesn’t work in development environment. Checked folder and files permissions > Permissions are all OK Checked PATH > Path is OK Tried absolute paths > Still not working in de…

Mono executes program with wrong current directory

I have a strange problem. I have written a custom spamfilter in C# .NET 4.6 for personal use. And I put this program up to my Raspberry Pi. I have tested many times the program, and everything worked fine, but when I created a cronjob I have noticed that the program never writes log. As I started to test agai…

How does ${path} work, in this tutorial

I’m sure this is one of the dumbest problems asked on this site, but I am very new to linux, and a little out of my depths. I’m working off of this tutorial here and am stuck on the “add the path” and verify steps. For this one the tutorial told me to use this: I have already defined D…

/bin/sh: 1: arm-linux-gcc: not found on ubuntu

I m trying to build using gcc arm cross compiler and i get following error Building file: ../src/application.c Invoking: GCC C Compiler arm-linux-gcc -O3 -Wall -c -I -fmessage-length=0 -MMD -MP -MF”src/application.d” -MT”src/application.d” -o “src/application.o” “../s…

Make a program in path preferable instead of another

There is a program in the PATH variable installed by root, but I installed a more recent version in my local. There is any way to make my program preferable instead of the root? Sorry for my bad english. Answer put the preferred directory in front of the other one. It will pick up the first one it finds.

Retrieve path of symbolic link

I want to store the path of the file the symbolic link is pointing to into bufff. This works with my current implementation using readlink but it grabs extra data I don’t need because my bufsize is arbitrarily valued. I’m not sure how to size it according to the path of what the symbolic link poin…