Re: System Uptime...?

From: kirbalo (kirbalo_at_nospam.com)
Date: 06/05/04


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


Relevant Pages

  • Re: System Uptime...?
    ... What do you use to keep track of system uptime, ... > I have a script file that I can execute from the sig block in Sylpheed. ... SuSE Linux 9.0 Pro & XP Pro Dual Boot ...
    (alt.os.linux.suse)
  • Re: System Uptime...?
    ... What do you use to keep track of system uptime, ... > is it being input into your signature file? ... I have a script file that I can execute from the sig block in Sylpheed. ...
    (alt.os.linux.suse)
  • Shutdown start up script
    ... I used a machine startup script to ... Uptime files to it ... REM Schedule UptimeCheck Task ...
    (microsoft.public.windows.server.scripting)
  • Re: [PATCH] Staircase scheduler v7.4
    ... Directly after booting the script runs fine. ... the script is stuck completely for the first time), ... but over time problems increased with uptime. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Help with Function Command
    ... > file read into a dictionary to get uptime from them. ... > taken from Microsoft site, but when this runs I get a syntax error at ... Your antivirus software is probably blocking script. ... Please reply to the newsgroup. ...
    (microsoft.public.scripting.vbscript)