0

I am little confused about an instruction I came across. It stated "put the file in your path". I interpreted that as to add

PATH=$PATH:'~/.conkystart'

to my ~/.bashrc. The file is ~/.conkystart

#!/bin/bash
conky -c ~/.conkyrc2

and ~/.conkyrc2 is a second conky fig file.

However, when I restarted, the second conkyrc file didn't execute and there were no errors in the bash terminal. Am I interpreting "put the file in your path" incorrectly? If so, what should I have done instead?

The end game is for ~/.conkyrc2 to execute on boot.

6
  • Your interpretation is incorrect, since PATH is a list of directories. You should copy/move/link it to a directory that is present in PATH, or add the directory containing it to PATH. That said, I don't see why adding it to PATH should cause it execute automatically. What is it you're trying to do and what instructions are you following?
    – muru
    Apr 8, 2015 at 3:11
  • @muru I want ~/.conkyrc2 to execute on boot.
    – dustin
    Apr 8, 2015 at 3:12
  • 2
    Just add it to Startup Applications Apr 8, 2015 at 3:12
  • @OrganicMarble I actually dont use Ubuntu. I was just asking this here as a general linux question.
    – dustin
    Apr 8, 2015 at 3:14
  • 1
    You do not want to run that at boot as X is not running yet and you will get an error message. You want it to run when you log in. It is more likely you want to start conky at login as I am going to guess conkyrc2 is not a script (although it could be).
    – Panther
    Apr 8, 2015 at 3:31

1 Answer 1

2

To add a file to your PATH, first find out what PATH is with:

echo $PATH

Then, move the file to one of those directories.

2
  • Will this have the file execute on boot as well?
    – dustin
    Apr 8, 2015 at 3:16
  • No, it will not. Apr 8, 2015 at 3:25

Not the answer you're looking for? Browse other questions tagged .