Ric
Members-
Posts
42 -
Joined
-
Last visited
Contact Methods
-
MSN
ricluney@gmail.com
-
Website URL
http://
-
ICQ
0
Ric's Achievements
New Here (1/7)
0
Reputation
-
Reading variables from a file [solved]
Ric replied to Ric's topic in Command Line, Kernel and Programming
Thats excactly what i needed, ive been trying to grep and awk my way thro it, this is so much easier. Thanks A Lot Ric -
Reading variables from a file [solved]
Ric replied to Ric's topic in Command Line, Kernel and Programming
Read it as a .ini file Thanks -
Can any one tell me how to read variables from a text file so they can be used with in a bash script ie text file has serverone_host=amber serverone_ip=10.0.0.1 servertwo_host=green servertwo_ip=10.0.0.2 and so on bash file picks out the different variables so rather then having to edit a load of scrips i would only have to edit the text file each time i deploy a system gee i am asking the question and that doesn't make sense to me hope it make sense to some one out there Regards Ric
-
Ric started following Hauppage winTv , Reading variables from a file [solved] , squid proxy and dansguardian and 2 others
-
quick reply presuming you are wanting a filtered transparent proxy change the shorewall rules /etc/shorewall/rules so thet the line REDIRECT loc 3128 tcp www is REDIRECT loc 8080 tcp www 8080 is the default port for dansguardian then restart shorewall in the /etc/squid/squid.conf add if they are not there already httpd_accel_host virtual httpd_accel_with_proxy on httpd_accel_uses_host_header on httpd_accel_port 80 restart squid and all should be well if that dosnt work ild post my squid.conf file after i get back from work Regards Ric
-
I have the same MotherBoard and Mandrake was doing the same i found i needed to disable legacy usb support, then it carryed on (dont know why it worked but it did 4 me) Ric
-
Thanks i will give that a try Ric
-
Hi I hope some one can help me, I use a perl script to make logon scripts for my samba domain, #! /usr/bin/perl # Generate a custom logon script when a user # logs into the network open LOGON, ">/home/share/netlogon/$ARGV[0].bat"; print LOGON "\@echo on \r\n"; print LOGON "IF EXIST F: NET USE F: /DELETE /y\r\n"; print LOGON "IF EXIST H: NET USE H: /DELETE /y\r\n"; print LOGON "IF EXIST I: NET USE I: /DELETE /y\r\n"; print LOGON "IF EXIST J: NET USE J: /DELETE /y\r\n"; print LOGON "IF EXIST T: NET USE T: /DELETE /y\r\n"; print LOGON "IF EXIST S: NET USE S: /DELETE /y\r\n"; print LOGON "IF EXIST R: NET USE R: /DELETE /y\r\n"; print LOGON "IF EXIST K: NET USE K: /DELETE /y\r\n"; print LOGON "IF EXIST V: NET USE V: /DELETE /y\r\n"; print LOGON "IF EXIST W: NET USE W: /DELETE /y\r\n"; print LOGON "IF EXIST U: NET USE U: /DELETE /y\r\n"; print LOGON "IF EXIST X: NET USE X: /DELETE /y\r\n"; print LOGON "IF EXIST F: NET USE F: /DELETE /y\r\n"; print LOGON "NET TIME \\\\$ARGV[1] /SET /YES\r\n"; # print LOGON "NET USE H: /HOME\r\n"; print LOGON "NET USE I: \\\\$ARGV[1]\\Students\r\n"; print LOGON "NET USE J: \\\\$ARGV[1]\\Learning\r\n"; # print LOGON "NET USE T: \\\\$ARGV[1]\\Applications\r\n"; # print LOGON "NET USE S: \\\\$ARGV[1]\\BootImages\r\n"; print LOGON "NET USE R: \\\\$ARGV[1]\\applications\r\n"; if ($ARGV[2] eq "teachers") { print LOGON "NET USE K: \\\\$ARGV[1]\\Teachers\r\n"; print LOGON "NET USE V: \\\\$ARGV[1]\\AdminStudents\r\n"; } if ($ARGV[2] eq "admin") { print LOGON "NET USE K: \\\\$ARGV[1]\\Teachers\r\n"; print LOGON "NET USE V: \\\\$ARGV[1]\\AdminStudents\r\n"; print LOGON "NET USE W: \\\\$ARGV[1]\\AdminTeachers\r\n"; } # print LOGON "deltree /y c:\\windows\\profiles\\* \r\n"; print LOGON "if not \"%OS%\"==\"Windows_NT\" GOTO NT9x\r\n"; print LOGON ":NTOS\r\n"; print LOGON "echo \"Windows NT\"\r\n"; print LOGON "echo printers\r\n"; print LOGON "\\\\$ARGV[1]\\netlogon\\con2prt.exe /f\r\n"; print LOGON "regedit /s printerpatch.reg\r\n"; print LOGON "logonprinters.vbs\r\n"; print LOGON "NET USE H: \\\\$ARGV[1]\\$ARGV[0]\r\n"; print LOGON "GOTO END\r\n"; print LOGON ":NT9x\r\n"; print LOGON "echo \"Windows 9x\"\r\n"; print LOGON "if exist \"c:\\WINDOWS\\PROFILES\\\" deltree /y c:\\windows\\profiles\\*\r\n"; print LOGON "NET USE H: /HOME\r\n"; print LOGON "if not exist c:\\windows\\proguard.exe copy \\\\$ARGV[1]\\Netlogon\\ProGuard.exe c:\\windows\r\n"; print LOGON "del c:\\windows\\*.pwl\r\n"; print LOGON "c:\\windows\\proguard.exe\r\n"; print LOGON "R:\\packages\\INTERCHK\\W95Inst\\setup -inl -a\r\n"; print LOGON "start /wait r:\\packages\\INTERCHK\\Savagent.exe -update -poll=3600\r\n"; print LOGON "GOTO END\r\n"; print LOGON ":END\r\n"; print LOGON "echo \"DONE!!\"\r\n"; print LOGON "EXIT\r\n"; # print LOGON "pause\r\n"; close LOGON; This all works very well however i now want to be able to test which lab a machine is in the machines are all names lab1-01, lab1-02, lab2-01 etc. now to the question does anyone know how i can do a 'if' command that only looks at the 1st 5 letters of the machine name (the lab1 bit) The machine name is passed to the script as $ARGV[3] hope that makes sense regards Ric
-
Hi don't know if you ever fixed this problem but i have the same graphics card,, i got it working by installing the nvidia drivers then running drakxconf again, this got me in with opengl support regards Ric
-
Can Someone Help With a Script to..
Ric replied to Ric's topic in Command Line, Kernel and Programming
Thanks for the quick response, that is exactly what i amm looking for . Cheers Ric -
Can some one help me with a script that can read a list of full names, then strip all but the first 3 letters of the first name and join it to the the surname to make a username. ie Full Name richard smith --- becomes ricsmith unless there is already a user called ricsmith in which case it would make richsmith . then run the useradd command : useradd -d /home/ricsmith -g some_group -p (get a password from some other file) then out print out the fullname, username and password to yet another file . Dose any of that even make sense. Thanks for any help. Ric
-
Thanks for the reply, I have since taken that card back to the shop and swapped it for a pinnacle pctv rave card, now i can get a picture but only static for sound dose anybody have any experiance with this card/thoughts ideas (dose this now need a new thread) Ric
-
I have bought a Hauppage WinTv card because i had read they work with mandrake but it didn't. found out it had the cx88* chipset and google'd around for a bit and found http://bytesex.org/cx88/ but i dont know what to do with that, anybody have any ideas what to do, or another sollution to get it working. Ric
-
The k3b rpms from their website works for me the mandrake rpms that ship with mdk9.2 dont, Thats for dvd+rw btw Ric
-
I put 8.2 onto kazza and renamed it 9.2 to see if any one would take the bait and they did so sorry if ive wasted your bandwith :D
-
Im sure if they posted a link to the torrent here we could help them with the faq :D