tcsh: set Variable name must begin with a letter.
Hallo Liste, Hat vielleicht jemand eine Idee, was ich falsch gemacht habe? (Mein erster Versuch aus "Das Firewall Buch" von Wolfgang Barth, SuSE Press, 2. überarbeitete Auflage.) Softlinks sind gesetzt in levels 2, 3, 5 roland:/home/roland # ls -l /etc/fw/ total 18 drwxr-xr-x 2 root root 112 2004-04-11 13:13 . drwxr-xr-x 58 root root 5800 2004-04-11 13:10 .. -rwxr--r-- 1 root root 5982 2004-04-11 14:35 Roland_FW_1 -rw-r--r-- 1 root root 522 2004-04-11 13:13 clear_all_rules roland:/home/roland # die Fehlermeldung kommt nach (manuellem) Aufruf des Scripts : roland:/home/roland # /etc/fw/Roland_FW_1 set: Variable name must begin with a letter. SuSE 8.2, KDE 3.1 Editor: Kate #!/bin/tcsh # Firewall script #---------------------------------------------------- # Part I: Variables set IPTABLES = /usr/sbin/iptables set p_high = 1024:65535 # unprivileged ports set p_ssh = 500: # ssh source ports set IF = eth0 set roland = 192.168.0.14 set ns = 212.114.152.1 212.114.153.1 set mail = 213.165.64.20 <snip> Herzlichen Gruß, und schonmal Dank für die Antworten ... -- Roland.Harke@gmx.de
Am Sonntag, 11. April 2004 15:07 schrieb Roland Harke:
Hallo Liste,
roland:/home/roland # /etc/fw/Roland_FW_1 set: Variable name must begin with a letter.
SuSE 8.2, KDE 3.1 Editor: Kate
#!/bin/tcsh
sollte hier nicht ein bash oder sh stehen ?? sprich: #!/bin/bash oder #!/bin/sh
# Firewall script #---------------------------------------------------- # Part I: Variables
set IPTABLES = /usr/sbin/iptables set p_high = 1024:65535 # unprivileged ports set p_ssh = 500: # ssh source ports set IF = eth0 set roland = 192.168.0.14 set ns = 212.114.152.1 212.114.153.1 set mail = 213.165.64.20 <snip>
Herzlichen Gruß, und schonmal Dank für die Antworten ... -- Roland.Harke@gmx.de
MFG Andre
Hallo, Am Sun, 11 Apr 2004, Roland Harke schrieb:
Hat vielleicht jemand eine Idee, was ich falsch gemacht habe? [..] roland:/home/roland # /etc/fw/Roland_FW_1 set: Variable name must begin with a letter.
#!/bin/tcsh # Firewall script #---------------------------------------------------- # Part I: Variables
set IPTABLES = /usr/sbin/iptables set p_high = 1024:65535 # unprivileged ports set p_ssh = 500: # ssh source ports set IF = eth0 set roland = 192.168.0.14 set ns = 212.114.152.1 212.114.153.1 set mail = 213.165.64.20 <snip>
Sind das _alle_ 'set'? Und werden andere Dateien gesourced, in denen noch ein 'set' auftaucht? -dnh -- If you haven't got time to RTFM, you haven't got time to whine on this mailing list.
On Sunday 11 April 2004 17:32, David Haller wrote: Hi David,
Am Sun, 11 Apr 2004, Roland Harke schrieb:
Hat vielleicht jemand eine Idee, was ich falsch gemacht habe?
[..]
#!/bin/tcsh
set IPTABLES = /usr/sbin/iptables set p_high = 1024:65535 # unprivileged ports set p_ssh = 500: # ssh source ports set IF = eth0 set roland = 192.168.0.14 set ns = 212.114.152.1 212.114.153.1 set mail = 213.165.64.20 <snip>
Sind das _alle_ 'set'? Und werden andere Dateien gesourced, in denen noch ein 'set' auftaucht?
Das sind alle 'set' Anweisungen. Kann es am Editor (Kate) liegen? Herzliche Grüße, -- Roland.Harke@gmx.de
Roland Harke wrote: [Sunday 11 April 2004 15:07]
die Fehlermeldung kommt nach (manuellem) Aufruf des Scripts :
roland:/home/roland # /etc/fw/Roland_FW_1 set: Variable name must begin with a letter.
#!/bin/tcsh # Firewall script #---------------------------------------------------- # Part I: Variables
set IPTABLES = /usr/sbin/iptables set p_high = 1024:65535 # unprivileged ports set p_ssh = 500: # ssh source ports set IF = eth0 set roland = 192.168.0.14 set ns = 212.114.152.1 212.114.153.1 set mail = 213.165.64.20
Es liegt an dieser Zeile: set ns = 212.114.152.1 212.114.153.1 Wenn im Value ein Space vorkommt, muß man den String quoten: set ns = "212.114.152.1 212.114.153.1" Thomas.
Hi Thomas, Das war's. Danke! On Sunday 11 April 2004 22:58, Thomas Hofer wrote:
Roland Harke wrote: [Sunday 11 April 2004 15:07]
die Fehlermeldung kommt nach (manuellem) Aufruf des Scripts :
roland:/home/roland # /etc/fw/Roland_FW_1 set: Variable name must begin with a letter. <snip>
Es liegt an dieser Zeile:
set ns = 212.114.152.1 212.114.153.1
Wenn im Value ein Space vorkommt, muß man den String quoten:
set ns = "212.114.152.1 212.114.153.1"
Thomas.
Herzlichen Gruß, -- Roland.Harke@gmx.de
participants (4)
-
Andre Lorenz
-
David Haller
-
Roland Harke
-
Thomas Hofer