Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
/.
Results 1 to 9 of 9

Thread: /.

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    417

    /.

    ok what does /. do?

    does that just mean execute?

    as in /.mybinary

    or is there some other significance?

    thanx,

  2. #2

    Re:/.

    hello,
    i think you mean ./ - it specifys the location of a file you which to execute, /. would mean run a program called . at the root directory

  3. #3

    Re:/.

    it executes a file or executable script. If the file has the execute flag set (chmod +x to make it executable), ./ will run the file

  4. #4
    Guest

    Re:/.

    Rule 1:
    /. is a nerdish way of referring to the SlashDot website

    Rule 2:
    Per default, Linux does not allow you to run executables in the present dir (it will pref. one in your PATH) thus we need to tell the OS that we need to run the executables in this dir (thus the . meaning this dir).

    So ./ and /. are not the same.

  5. #5

    Re:/.

    When working on the command line (CLI), a period means current directory. If you could print the contents of the period, it would be the same as the output of the 'pwd' command.
    If this was valid: 'echo .' (or) 'echo $.' it would have the same output as 'pwd'.

    When you type something on the CLI, it looks through your path variable to see if it can find a folder in the path which contains the executable name. If it cannot then it will spout command not found or whatever. If you type:

    echo $PATH then you will see all the folders that are searched when looking for an executable program/script. If you would like to add to this (say you have a folder of perl scripts you wrote and you want to access them from any folder) you can do this:

    export PATH=$PATH:/another/folder/to/search

    This will wear off when you log out of your shell however. If you would like this new path to be in your shell when you login, then you need to put it in your .bashrc (if you're using bash).

    Don't export the period to your path, it could have security implications.

    Note - Instead of doing ./configre or whatever you can always type out the whole path.... eg:

    $ pwd
    /home/bob/bobsscripts
    $/home/bob/bobsscripts/somescript.pl
    (above command is same as)
    $ ./somescript.pl

    Note 2 - If (using the example above) you do this:

    export PATH=$PATH:/home/bob/bobsscripts

    you can then call somescript.pl from any folder


  6. #6

    Re:/.

    On a similar topic. What does /. as in the slashdot website stand for?

  7. #7
    Senior Member
    Join Date
    Sep 2002
    Posts
    421

    Re:/.

    [quote author=pwrhouse link=board=1;threadid=6258;start=0#59203 date=1044309397]
    On a similar topic. What does /. as in the slashdot website stand for?
    [/quote]
    http://slashdot.org/faq/slashmeta.shtml#sm150

  8. #8
    Senior Member
    Join Date
    Apr 2002
    Posts
    417

    Re:/.

    I think pwrhouse asked the question I should have asked and saved everyone the trouble. That is where I originally say slashdot but then I saw it on a coffee mug.




  9. #9

    Re:/.

    Thanks demian. I guess I should have taken a look at the FAQ.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •