|
So i’ve decided that while I want to be able to share some things from my life on this site, I also want to write some useful content. Maybe even live up to the name blogger some day. It is safe to say that I am a linux command line junkie. I was raised on DOS and windows 3.1 (i didn’t have a computer that supported windows 95 until windows 98SE was released) and when I got experienced enough to realize that they both sucked i tried linux. The first time I installed linux on my family computer it was slackware version maybe 2 (i dont actually remember what version it was) and came on about 12 floppies that I had to download with my 14.4 modem. Some of the people reading this might not even know what a floppy or a 14.4 modem are but that’s ok. Back in those days the command line was pretty much the only useful way to interact with your computer, so that is what I learned. Now you might say the command line is outdated, but i would disagree. While GUI’s have gotten faster, smarter and better looking then ever before the command line is far more powerful due to the control it gives you and the speed with which you can get things done. Unfortunately, the command-line is a dying art - there are many computer power users out there who have little to no experience with it. I hope those people find this useful. Now if I were being logical, the first in a series of command line interface (CLI) tutorials that I write should probably cover the essentials: man, cp, mv, rm, etc. But i’m not being logical. I am going to write about ssh because I have been using it an awful lot lately and that is what I want to do. And this is my blog. After that I will go back and write about the essentials and re-order them. ShareThis
I haven’t a clue as to how to go about writing vbscripts, but I’ve been able to get quite a bit done by visiting various forums and asking various questions of my peers and such. I however have run into a snag that for the life of my I can’t figure out. The script below speaks to the creation of a folder, the deletion of any content in that folder (if of course it exists), the creation of a folder within that folder, the dropping of files into the root and sub folders and finally the creation of a shortcut on the user’s desktop. All of these functions work as expected but only when logging onto the system with a user that has administrative privileges i.e.: me. What I’m needing to do is have the script assign the “domain\domain users” write and delete privileges to the “c:\databases” folder. But again I for the life of me can’t figure this out. Where I think I’m getting confused is 1. where to place the string to allow for this functionality and 2. What statement actually allow for it, (I’ve found so many that that I don’t know what to use). If one of you can modify this script for me to allow for the assignment of these permissions that would be great. Thank you Shannon ‘region Script Settings ‘$$$$ Version 2007-10-10 $$$$ Option Explicit ‘Script Begins Here If bolEnableCrossDomain Then ‘Set objComputer = GetObject("WinNT://" & strNetBIOSDomain & "/" & strComputerName & ",computer")
Lagi-lagi nemu di net neh…. contoh script buat ngecek keabsahan penulisan IP dalam bahasa Java, tapi kemudian aku konvert ke PHP function $erg = if ($ip_addr == ”){ $valid = false;} else{ $valid = ereg($erg, $ip_addr); } } //Contoh Penggunaan $ip = if(is_valid_ip($ip)){ echo “IP $ip penulisannya Tepat”; } echo “ $ip = if(is_valid_ip($ip)){ echo “IP $ip penulisannya Tepat”; } $ip = “999.999.999.999″; //Maksimal format ip - 255.255.255.255 if(is_valid_ip($ip)){ echo “IP $ip penulisannya Tepat”; } Happy scripting….
|
|