Re: Fwd: [Cooker] File named 3

2001-04-03 Thread David Eastcott


its /etc/profile.d/tmpdir.sh

Also see post from Xavier Bertou 

Dave

On Mon, 02 Apr 2001, you wrote:
 I deleted the original and just kept this fix.  Problem is, somebody cut
 out the name of the file being edited here.  So I need a fix for this
 fix. :)
 
 Xavier Bertou wrote:
  
   if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
   -o "$SECURE_TMP"  3 ];then
  
   and I changed it to:
  
   if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
   ];then
  
   not sure if this is correct, but now I don't get the "3" file showing up any
   more.
  
  You should use:
  if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
  -o "$SECURE_TMP" -gt 3 ];then
  
  --
  man test
 
 -- 
 Digital Wokan, Tribal Mage of the Electronics Age
 Guerilla Linux Warrior




Re: Fwd: [Cooker] File named 3

2001-04-03 Thread Sebastian Dransfeld

On Tue, 3 Apr 2001, Xavier Bertou wrote:

  if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
  -o "$SECURE_TMP"  3 ];then
 
  and I changed it to:
 
  if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
  ];then
 
  not sure if this is correct, but now I don't get the "3" file showing up any
  more.

 You should use:
 if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
 -o "$SECURE_TMP" -gt 3 ];then

Nope.

if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
-o "$SECURITY" -gt 3 ];then

The SECURITY variable must be set in /etc/sysconfig/system, or else the
test will generate an error.

seb





Re: Fwd: [Cooker] File named 3

2001-04-03 Thread Thomas Mangin, Systems

|   if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" =
"YES"
|   -o "$SECURE_TMP"  3 ];then
|  
|   and I changed it to:
|  
|   if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" =
"YES"
|   ];then
|  
|   not sure if this is correct, but now I don't get the "3" file showing
up any
|   more.
| 
|  You should use:
|  if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" =
"YES"
|  -o "$SECURE_TMP" -gt 3 ];then
|
| Nope.
|
| if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
| -o "$SECURITY" -gt 3 ];then
|
| The SECURITY variable must be set in /etc/sysconfig/system, or else the
| test will generate an error.

Nope

If you want to catch "yes", "YES", "Yes" as well as "YeS" and firends the
best way is :

SECURE_LOW=`echo "$SECURE_TMP" | tr [A-Z] [a-z]`
if [ "$SECURE_LOW" = "yes" -o "$SECURE_LOW" = "1" -o "$SECURITY" -gt 3 ];
then

Ps : I have no idea what so ever of what the code look like and I guess you
can add the tr to the SECURE_TMP directly.

Thomas






Re: Fwd: [Cooker] File named 3

2001-04-03 Thread Chmouel Boudjnah

Digital Wokan [EMAIL PROTECTED] writes:

 I deleted the original and just kept this fix.  Problem is, somebody cut
 out the name of the file being edited here.  So I need a fix for this
 fix. :)

ok it fixed in last initscripts.

-- 
MandrakeSoft Inc http://www.chmouel.org
  --Chmouel




Re: Fwd: [Cooker] File named 3

2001-04-03 Thread Sebastian Dransfeld

On 3 Apr 2001, Chmouel Boudjnah wrote:

 Digital Wokan [EMAIL PROTECTED] writes:

  I deleted the original and just kept this fix.  Problem is, somebody cut
  out the name of the file being edited here.  So I need a fix for this
  fix. :)

 ok it fixed in last initscripts.


The script should check if $SECURITY is set.

root@s186b:/usr/lib/rpm/i386-mandrake-linux# echo $SECURITY

root@s186b:/usr/lib/rpm/i386-mandrake-linux# [ $SECURITY -gt 3 ]
[: -gt: unary operator expected
root@s186b:/usr/lib/rpm/i386-mandrake-linux#

seb





Re: Fwd: [Cooker] File named 3

2001-04-03 Thread Chmouel Boudjnah

Sebastian Dransfeld [EMAIL PROTECTED] writes:

 On 3 Apr 2001, Chmouel Boudjnah wrote:
 
  Digital Wokan [EMAIL PROTECTED] writes:
 
   I deleted the original and just kept this fix.  Problem is, somebody cut
   out the name of the file being edited here.  So I need a fix for this
   fix. :)
 
  ok it fixed in last initscripts.
 
 
 The script should check if $SECURITY is set.
 
 root@s186b:/usr/lib/rpm/i386-mandrake-linux# echo $SECURITY
 
 root@s186b:/usr/lib/rpm/i386-mandrake-linux# [ $SECURITY -gt 3 ]
 [: -gt: unary operator expected
 root@s186b:/usr/lib/rpm/i386-mandrake-linux#


humm well just noticed you don't put " " quote between $SECURITY.

-- 
MandrakeSoft Inc http://www.chmouel.org
  --Chmouel




Re: Fwd: [Cooker] File named 3

2001-04-03 Thread Sebastian Dransfeld

On 3 Apr 2001, Chmouel Boudjnah wrote:

 Sebastian Dransfeld [EMAIL PROTECTED] writes:

  On 3 Apr 2001, Chmouel Boudjnah wrote:
 
   Digital Wokan [EMAIL PROTECTED] writes:
  
I deleted the original and just kept this fix.  Problem is, somebody cut
out the name of the file being edited here.  So I need a fix for this
fix. :)
  
   ok it fixed in last initscripts.
  
 
  The script should check if $SECURITY is set.
 
  root@s186b:/usr/lib/rpm/i386-mandrake-linux# echo $SECURITY
 
  root@s186b:/usr/lib/rpm/i386-mandrake-linux# [ $SECURITY -gt 3 ]
  [: -gt: unary operator expected
  root@s186b:/usr/lib/rpm/i386-mandrake-linux#


 humm well just noticed you don't put " " quote between $SECURITY.

root@s186b:~# [ "$SECURITY" -gt 3 ]
[: : integer expression expected
root@s186b:~# echo $SECURITY

root@s186b:~#

seb





Re: Fwd: [Cooker] File named 3

2001-04-03 Thread Chmouel Boudjnah

Sebastian Dransfeld [EMAIL PROTECTED] writes:

 The script should check if $SECURITY is set.

i definitively hate shell :-(

-- 
MandrakeSoft Inc http://www.chmouel.org
  --Chmouel




Re: Fwd: [Cooker] File named 3

2001-04-03 Thread Chmouel Boudjnah

Sebastian Dransfeld [EMAIL PROTECTED] writes:

 On 3 Apr 2001, Chmouel Boudjnah wrote:
 
  Sebastian Dransfeld [EMAIL PROTECTED] writes:
 
   On 3 Apr 2001, Chmouel Boudjnah wrote:
  
Digital Wokan [EMAIL PROTECTED] writes:
   
 I deleted the original and just kept this fix.  Problem is, somebody cut
 out the name of the file being edited here.  So I need a fix for this
 fix. :)
   
ok it fixed in last initscripts.
   
  
   The script should check if $SECURITY is set.
  
   root@s186b:/usr/lib/rpm/i386-mandrake-linux# echo $SECURITY
  
   root@s186b:/usr/lib/rpm/i386-mandrake-linux# [ $SECURITY -gt 3 ]
   [: -gt: unary operator expected
   root@s186b:/usr/lib/rpm/i386-mandrake-linux#
 
 
  humm well just noticed you don't put " " quote between $SECURITY.
 
 root@s186b:~# [ "$SECURITY" -gt 3 ]
 [: : integer expression expected
 root@s186b:~# echo $SECURITY
 
 root@s186b:~#

try with double brace [[ "$SECURITY" -gt 3 ]]

-- 
MandrakeSoft Inc http://www.chmouel.org
  --Chmouel




RE: Fwd: [Cooker] File named 3

2001-04-03 Thread Andrej Borsenkow



 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]On Behalf Of Sebastian Dransfeld
 Sent: Tuesday, April 03, 2001 7:35 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Fwd: [Cooker] File named "3"
 
 
 On 3 Apr 2001, Chmouel Boudjnah wrote:
 
  Sebastian Dransfeld [EMAIL PROTECTED] writes:
 
   On 3 Apr 2001, Chmouel Boudjnah wrote:
  
Digital Wokan [EMAIL PROTECTED] writes:
   
 I deleted the original and just kept this fix.  Problem is, 
 somebody cut
 out the name of the file being edited here.  So I need a 
 fix for this
 fix. :)
   
ok it fixed in last initscripts.
   
  
   The script should check if $SECURITY is set.
  
   root@s186b:/usr/lib/rpm/i386-mandrake-linux# echo $SECURITY
  
   root@s186b:/usr/lib/rpm/i386-mandrake-linux# [ $SECURITY -gt 3 ]
   [: -gt: unary operator expected
   root@s186b:/usr/lib/rpm/i386-mandrake-linux#
 
 
  humm well just noticed you don't put " " quote between $SECURITY.
 
 root@s186b:~# [ "$SECURITY" -gt 3 ]
 [: : integer expression expected
 root@s186b:~# echo $SECURITY
 
 root@s186b:~#
 

[ "${SECURITY:-0}" -gt 3 ]

(or whatever value is appropriate)?

-andrej




Re: Fwd: [Cooker] File named 3

2001-04-03 Thread Sebastian Dransfeld

On 3 Apr 2001, Chmouel Boudjnah wrote:

 Sebastian Dransfeld [EMAIL PROTECTED] writes:

  On 3 Apr 2001, Chmouel Boudjnah wrote:
 
   Sebastian Dransfeld [EMAIL PROTECTED] writes:
  
root@s186b:~# [ "$SECURITY" -gt 3 ]
[: : integer expression expected
root@s186b:~# echo $SECURITY
   
root@s186b:~#
  
   try with double brace [[ "$SECURITY" -gt 3 ]]
  
 
  That works, but shouldn't $SECURITY be set anyway?

 yes it should at install in /etc/sysconfig/system


I installed before beta1, and have only updated. But my
/etc/sysconfig/system didn't contain any SECURITY variable. Which I only
noticed a while ago.

seb





Re: Fwd: [Cooker] File named 3

2001-04-02 Thread Xavier Bertou

 if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
 -o "$SECURE_TMP"  3 ];then 
 
 and I changed it to:
 
 if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
 ];then 
 
 not sure if this is correct, but now I don't get the "3" file showing up any
 more.

You should use:
if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
-o "$SECURE_TMP" -gt 3 ];then

-- 
man test




Re: Fwd: [Cooker] File named 3

2001-04-02 Thread Digital Wokan

I deleted the original and just kept this fix.  Problem is, somebody cut
out the name of the file being edited here.  So I need a fix for this
fix. :)

Xavier Bertou wrote:
 
  if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
  -o "$SECURE_TMP"  3 ];then
 
  and I changed it to:
 
  if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
  ];then
 
  not sure if this is correct, but now I don't get the "3" file showing up any
  more.
 
 You should use:
 if [ "$SECURE_TMP" = "yes" -o "$SECURE_TMP" = "1" -o "$SECURE_TMP" = "YES"
 -o "$SECURE_TMP" -gt 3 ];then
 
 --
 man test

-- 
Digital Wokan, Tribal Mage of the Electronics Age
Guerilla Linux Warrior