Results 1 to 6 of 6

Thread: Tail -f Shortcut

  1. #1
    Join Date
    Nov 2008
    Beans
    61

    Tail -f Shortcut

    Hello all,

    I have been a user of Xubuntu for a couple years now and lovin it. I have a custom launcher on my desktop that uses the command "tail -f /home/.........." to launch a logging txt file into a terminal, and it works great. However, when I switch over to Lubuntu, this launcher just generates an error....."Failed to change to directory '' (No such file or directory)". Why would this work in Xubuntu and not in Lubuntu. I have tried recreating the shortcut a dozen times with no luck. Yet, if I open LXTerminal and physically type the tail -f /home/......command, it works fine.

    Any ideas as to why the shortcut works in X and not in L???

    Thanks in advance............

  2. #2
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Tail -f Shortcut

    Can you post your launcher contents? You might need to tell it to open in a terminal or something.

  3. #3
    Join Date
    Nov 2008
    Beans
    61

    Re: Tail -f Shortcut

    Here is the launcher shortcut.....as setup in xubuntu. The contents are the same in the lubuntu shortcut....

    BBS Monitor.desktop

    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=BBS Monitor
    Comment=
    Exec=tail -f /home/kenneth/Linbpq/logLatest_BBS.txt
    Icon=7767_BPQ32.0
    Path=
    Terminal=true
    StartupNotify=false
    GenericName=

    I have tried adding terminal and lxterminal in front of the tail -f command, but if fails to launch that way as well. Thanks.

    Ken

  4. #4
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Tail -f Shortcut

    Quote Originally Posted by kjacobs View Post
    Name=BBS Monitor
    Comment=
    Exec=tail -f /home/kenneth/Linbpq/logLatest_BBS.txt
    Icon=7767_BPQ32.0
    Path=
    Terminal=true
    StartupNotify=false
    GenericName=
    I'm not sure if this is supposed to happen, but I suspect LXDE just handles this differently to XFCE. According to http://standards.freedesktop.org/des...t/ar01s05.html, the "Path" key tells the desktop environment what path to run the application in. I suspect that because you have given it a 'value' XFCE just ignored it (because it's just whitespace) but LXDE tried to changed directory to an empty path, creating an error. Try this instead:

    Code:
    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=BBS Monitor
    Exec=tail -f /home/kenneth/Linbpq/logLatest_BBS.txt
    Icon=7767_BPQ32.0
    Terminal=true
    StartupNotify=false
    (Note removed empty keys).

    If that doesn't work either, try using

    Code:
    lxterminal -e tail -f /home/kenneth/....
    Which will hopefully work. This is just guessing, but I'll be on my LXDE machine in a few hours anyway, so I'll test it then.

  5. #5
    Join Date
    Nov 2008
    Beans
    61

    Re: Tail -f Shortcut

    AHA! The second option worked....all because of one little -e....LOL.

    lxterminal -e tail -f /home/kenneth/Linbpq/logLatest_BBS.txt

    The first option above simply opened terminal, but did not begin the tail function. Anyway, it works like a champion. Many thanks.

  6. #6
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Tail -f Shortcut

    Quote Originally Posted by kjacobs View Post
    AHA! The second option worked....all because of one little -e....LOL.

    lxterminal -e tail -f /home/kenneth/Linbpq/logLatest_BBS.txt

    The first option above simply opened terminal, but did not begin the tail function. Anyway, it works like a champion. Many thanks.
    Great.

    Incidentally, all the '-e' option does is tell the terminal to start executing a script immediately. Just FYI.

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
  •