#14 Timetable for auctions

open
nobody
None
1
2005-07-25
2005-07-25
Rolf
No

Hi,

this is very low prio but it would be nice if esniper
included a tool to list auctions with a timeline. It
might suffice to just list them chronologically and
print out the ending time together with current price
and my max price.

I am not sure if snipe can supposedly do this but snipe
does nothing for me but list auction numbers. That
info I can get of course from the sniper files alone.

Regards

Rolf

Discussion

  • Rolf
    Rolf
    2005-07-25

    • priority: 5 --> 1
     
  • Scott Nicol
    Scott Nicol
    2005-07-26

    Logged In: YES
    user_id=441678

    How close is the -i option to what you want? I think all
    that is missing is sorting by end time.

     
  • Rolf
    Rolf
    2005-07-26

    Logged In: YES
    user_id=1159152

    As I said, snipe does not do anything for me that ps -f does
    not do as well.

    $ snipe
    Currently active snipes:
    leggewie 4661 6861 0 01:32 pts/1 00:00:01 esniper
    notebook.esn

    $ ls -l notebook.esn
    -rw-r--r-- 1 leggewie leggewie 571 Jul 26 00:34 notebook.esn

    $ snipe -i notebook.esn
    Cannot find info on notebook.esn

    leggewie@Pfaffe:~$ snipe -i ./notebook.esn
    ls: /home/leggewie/.snipe/*.txt: No such file or directory
    Cannot find info on ./notebook.esn

    $ snipe -I 4661
    Currently active snipes:
    leggewie 6941 1 0 Jul23 pts/1 00:00:02 esniper ram.esn
    leggewie 22744 6861 0 Jul24 pts/1 00:00:03 esniper
    toner.esn
    leggewie 30183 6861 0 Jul25 pts/1 00:00:00 esniper
    drucker.esn
    leggewie 4661 6861 0 01:32 pts/1 00:00:01 esniper
    notebook.esn

    This is not working.

     
  • Scott Nicol
    Scott Nicol
    2005-07-26

    Logged In: YES
    user_id=441678

    First of all, I meant esniper -i. Try it.

    Second, I'm curious what is going on with your use of snipe.
    It works for me. A quick guess -- you started esniper by
    itself instead of starting it through snipe, i.e. you did:

    $ esniper notebook.esn &
    $ snipe -i notebook.esn

    instead of:

    $ snipe notebook.esn
    $ snipe -i notebook.esn

     
  • Rolf
    Rolf
    2005-07-26

    Logged In: YES
    user_id=1159152

    It does not matter whether I try -i, -I or whatever. It
    plainly will not work. And yes, I use esniper to start my
    auctions not snipe itself. I'll try snipe for starting an
    auction one of these days. Does it call esniper internally
    so that whenever I update esniper I get the benefit?

     
  • Rolf
    Rolf
    2005-07-26

    Logged In: YES
    user_id=1159152

    Just tried it out about a minute ago. snipe calls ksh which
    is not on my system. I see that snipe is just a simple
    shell script. Can I just replace every occurence of ksh
    with sh or bash?

     
  • Scott Nicol
    Scott Nicol
    2005-07-26

    Logged In: YES
    user_id=441678

    A few comments.

    1. Try esniper -i <auction file>. Really. It has nothing
    to do with snipe, the shell script. Trust me on this.

    2. snipe is a shell script, but it needs to call ksh for a
    little hack (to get the PID of the subshell). bash should
    work OK, too. sh will not work (unless it is a synonym for
    bash, which isn't true on all systems). I updated the
    script to have it automatically figure out if bash or ksh
    should be called -- it should show up on public CVS within a
    day.

    3. If you use esniper directly, you won't have things setup
    correctly for snipe -i (or -k) to work.

     
  • Rolf
    Rolf
    2008-03-16

    Logged In: YES
    user_id=1159152
    Originator: YES

    "esniper -i" and sorting by end time, possibly enhanced with some grep, would be sufficient, I guess.