Re: System Uptime...?
From: kirbalo (kirbalo_at_nospam.com)
Date: 06/05/04
- Next message: AC: "Re: Samba Still Broken__>Weird Problem__>Bug?"
- Previous message: Eggert Ehmke: "Re: 9.1 Pro Problem"
- In reply to: Kevin Nathan: "Re: System Uptime...?"
- Next in thread: Kevin Nathan: "Re: System Uptime...?"
- Reply: Kevin Nathan: "Re: System Uptime...?"
- Reply: baskitcaise: "Re: System Uptime...?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 05 Jun 2004 15:25:16 -0500
Kevin Nathan wrote:
> On Fri, 04 Jun 2004 21:10:06 -0500
> kirbalo <kirbalo@nospam.com> wrote:
>
>> Hi All,
>>
>> I have noticed that some "signature" files have system Uptime
>> information. What do you use to keep track of system uptime, and how
>> is it being input into your signature file?
>>
>> Just curious...
>
> I have a script file that I can execute from the sig block in Sylpheed.
> Most news and email clients can do something similar. I don't know how
> it's done in KNode, but you can look around in the sig area of settings
> to see. Here is the script I use:
>
> #!/bin/bash
> cat ~/data/sigs/commandLineBare.sig
> uname -sr
> uptime
>
> The first line lets Linux know what is needed to run this script.
> The second line just outputs the three lines of text in my sig.
> The third line prints the kernel info.
> The fourth line prints the uptime.
>
> Name it whatever you like (I will use 'uptimesig' for example purposes
> here) and then do:
>
> chmod +x uptimesig
>
> I usually put things like this in ~/bin (which you might have to create)
> and then enter the full path/filename in your KNode settings.
>
>
Hi Kevin...
I tried your script, "modified" to fit my system, but I must still be doing
something wrong...
my script is:
#!/bin/bash
cat ~/bin/KirbaloSigFile
uname -sr
uptime
but I get whats below as a signature when I start a new message within
KNode:
Both files are in /home/kirbalo/bin
What am I doing wrong?
Kirbalo
-- /home/kirbalo/bin/SystemUptimeSig: line 2: cat ~/bin/KirbaloSigFile: No such file or directory /home/kirbalo/bin/SystemUptimeSig: line 3: uname -sr: command not found 3:19pm up 18:19, 3 users, load average: 1.27, 1.34, 1.36
- Next message: AC: "Re: Samba Still Broken__>Weird Problem__>Bug?"
- Previous message: Eggert Ehmke: "Re: 9.1 Pro Problem"
- In reply to: Kevin Nathan: "Re: System Uptime...?"
- Next in thread: Kevin Nathan: "Re: System Uptime...?"
- Reply: Kevin Nathan: "Re: System Uptime...?"
- Reply: baskitcaise: "Re: System Uptime...?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|