|
ECS Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | RE: [ecs] shell cmd to determine a file's size ? Mark Gilmore Thu, 26 Feb 2004 14:15:04 -0800 |
Thu, 26 Feb 2004 14:15:04 -0800
hi rob,
thanks, but i need to know how to branch on the condition:
if file sz > 0
...
At 02:47 PM 2/26/2004 -0700, you wrote:
>Mark,
>
>ls -s x.tmp
>
>-----Original Message-----
>From: Mark Gilmore [mailto:mark@OmnipotenceSoftware.com]
>Sent: Thursday, February 26, 2004 2:36 PM
>To: ecs@netbloc.com
>Subject: [ecs] shell cmd to determine a file's size ?
>
>I need a shell to determine if XWindows is running.
>If I do this:
> ps -aux | grep xinit > x.tmp
>then x.tmp will contain a line like this *if* X is running:
> root 4318 0.0 0.5 2224 756 tty1 S 03:51 0:00 xinit
>If not, x.tmp will be empty.
>But what shell command would tell me the file's size ?
>Thanks,
>
>Mark Gilmore
>http://OmnipotenceSoftware.com
>
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.593 / Virus Database: 376 - Release Date: 2/20/2004
Mark Gilmore
http://OmnipotenceSoftware.com
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 2/20/2004
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects