Re: /usr/bin/printf: %,: invalid directive
"Andres L. Figari" <[email protected]>
| Newsgroups | gmane.network.netsaint.user |
|---|---|
| Message-ID | <001d01c253b4$c8b1a820$6600a8c0@kara> |
Thanks ! Must be ping then, since it returns the % packet drop. So do you know if STDER can be piped out to /dev/null in the email command? I guess I can try it ;) ----- Original Message ----- From: "Stanley Hopcroft" <[email protected]> To: "Andres L. Figari" <[email protected]> Cc: <[email protected]> Sent: Tuesday, September 03, 2002 4:30 PM Subject: Re: [netsaint] /usr/bin/printf: %,: invalid directive > Dear Sir, > > There is a bit of a gotcha with printf in that if it's arguments contain > the '%' character they may not be interpreted correctly. > > This shows the sort of trouble > > tsitc> printf '10%' > printf: illegal format character U > > Your choices are :- > > . try and deeal with the plugin output containing '%' eg convert it to > %% > > . replace echo and live with much poorer formatting (in general). > > > On Tue, Sep 03, 2002 at 03:54:50PM -0800, Andres L. Figari wrote: > > Hi, > > > > Dug throught the mailing list emails, I could swear I remeber this but can't > > find it :( > > > > I get a strange little error > > > > /usr/bin/printf: %,: invalid directive > > > > Netsaint works great, but at times, while in the machine and working with > > it, it prints oput on the screen LOL > > > > Anyone know what this is about? > > > > Regards, > > > > Andres > > > > Another problem is that plugin putput cannot contain quote characters > "'" since they can't be escaped to /bin/sh. > > Yours sincerely. > > -- > ------------------------------------------------------------------------ > Stanley Hopcroft > ------------------------------------------------------------------------ > > '...No man is an island, entire of itself; every man is a piece of the > continent, a part of the main. If a clod be washed away by the sea, > Europe is the less, as well as if a promontory were, as well as if a > manor of thy friend's or of thine own were. Any man's death diminishes > me, because I am involved in mankind; and therefore never send to know > for whom the bell tolls; it tolls for thee...' > > from Meditation 17, J Donne. > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Netsaint-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/netsaint-users > ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390