-
Posts
290 -
Joined
-
Last visited
Content Type
Forums
News
20th
EduGeek EDIT Conference
Blogs
Everything posted by kesomir
-
there's getgid and getuid to return the groupid and userid of the process, and there's also getegid to return the effective group of the process. Not sure how to return a logged in user though, as you can have many. What about running a script as the user and outputting to a file which you read in the other script?
-
As grumbledook says. Inventory - make sure you have a list of all the IT gear, serial numbers, MAC etc. (inc. licences, any support contracts, warranties, Operating Systems in use...) Ethernet Connections - check the patch panel, number all the ethernet ports if not already done. Make a network map. Disaster Recovery - What is (or isn't) in place, can you afford to lose said data and how long would recovery to full operation take. Plan your DR. Current IT use + where they want to go today™
-
The Printer script on the wiki uses the clientname for terminal services sessions to get around that issue: LCase(WshShell.ExpandEnvironmentStrings("%CLIENTNAME%") You may need to identify your terminal servers and replace the client variable with this only for TS sessions, but you could do that with a switch and an array of the terminal server's computer names. Just posted in case it becomes an issue for you in the future.
-
small Windows online problem after installing Ubuntu
kesomir replied to scalywag66's topic in Windows
How is ubuntu installed? Is it the new feature where you can install it 'inside' windows? in a virtual machine? or on a separate partition/drive? Your easiest path to sucess is probably installing it properly on it's own partition or drive and dual booting. -
I'm interested to see your script. Does the final version rely on the odbc? Easily done with a mysql query and cron to auto expire 'old' ones. To check to see if connections are active, could do by running a client side script?
-
alt shouldn't be blank. breaks xhtml compatibility. I don't use either joomla or 'fireboard', but if the $avatar is data from 'fireboard', then might it be missing the suffix? when you look at the path on the broken image what is it? does it include a value for avatar? and is the suffix missing?
-
in the header of the file (named something.php) where the css would go (between and ): (done in php) $config_theme = '/home/user/www/mysite/config_folder/config.cfg'; //check config file exists if(file_exists ($config_theme)){ //open file, read the contents to variable $theme = file_get_contents ($config_theme); include '/path/to/css/folder/'.$theme; } else{ //include default include './path/to/default.css'; } ?> if you need to allow them to switch based on a web form, you need to create a form with a dropdown with the themes in, then process the data received to write the contents of the file referenced above. If you don't need them to do that via web and they can access the file direct, you can set the variable in the config file and just include it before pulling the css file. EDIT: let me know if you need help with the form parts.
-
EDIT: Came back and posted this far too late.
- 15 replies
-
- monitoring
-
(and 1 more)
Tagged with:
-
I use OneorZero Help Desk / HelpDesk and Task Management - Open Source, Free and Supported Software by OneOrZero I use the free (couple versions behind) version and because of that only use it internally, for security.
-
Here's a linky to getting it going on solaris. altinity.org: Installing Nagios 2.0 on Solaris 10
-
raid 6? (if perc6i) other than that I'd say raid 5 + hot spare.
-
like this? File Thingie ? PHP File Manager
-
Anyone using HP T5735 Thin Client terminals?
kesomir replied to cookie_monster's topic in Thin Client and Virtual Machines
Are you sure you followed the instructions? I have a feeling that you didn't install the DOS environment to be PXE booted to run the automation tasks. It's a separate download and then setup in altiris -
I am awaited delivery of the dell 42u rack now. I'm sure it'll do the trick, no-one's had anything bad to say about it.
-
do you use gpupdate to refresh a client for testing or was this a GP propogation issue?
-
I'm considering one for my next machine, but only because I can run windows on it as well. Got too much invested in the creative suite atm.
-
I use virtualbox on vista 64 since vmware wont run on that as a host os yet.
-
My new equipment will probably arrive in a couple of weeks lol and I have to do the same thing. Here's to you chaps posting the solution before then
-
Perhaps when you have it working you could post a howto on the wiki - or on the forums with teh code
-
Only free for home use though.
-
95% of what you do normally as a user doesn't require administrator/root priv escalation, it's only when you are performing something major. (Unlike vista which requires it to run a lot of programs at the moment until things get settled)
-
I run *nix webservers, so in my instance I would create a samba share with a batch file, php file, perl file etc that manipulates the database with the parameters it's passed. The advantage first method of calling the webpage is that it's probably very familiar for the variable passing, but you may need to launch a webbrowser (then close it) to do it?? The second method is basically the same implementation as your .exe but calling a script on the webserver. This avoids the problems with your .net security. Advantage of doing it on *nix is that the script can be almost any flavour you want - including php. If you were doing it on windows, you're a bit more restricted in the languages you can use - I don't know if you can execute php from the command line in windows but you can easily on a shell. it would look something like this: calling 'concurrent_users.sh type username hostname' #!/usr/local/bin/php -q //grab the parameters //type $type = $argv[1]; //username $username = $argv[2]; //hostname $hostname = $argv[3]; // execute the database call and make the write from the passed parameters switch($type){ case 'logon': //check to see if logged on and if time isn't beyond auto expire //write logon data inc time etc //allow logon data['permit'] = TRUE; //or not data['permit'] = FALSE; data['other_host'] = xxx; break; case 'logoff': //delete instance of user on this hostname break; } return $data; ?> You then have to logoff immediately if the returned data is FALSE and you get the hostname backto give them a message "you are currently logged on to machine: xxx. Max Logons is X, you have exceeded this, you will need to log out of a machine to log in to this one. If you believe this is an error, please contact your system administrator - blah blah" Thats a rough outline, the problems to solve would involve the returned data and the execution of the logon script. EDIT: heh - easiest way would prob be using text files as an intermediary, which I think is the current solution. This sophisticates the whole thing by adding the database, configurable settings etc.
-
Anything. It's just a version control system. You could use it for a multi-developer php project, C++, Java, Flex etc. or you could use it to version control your administrative files in the office.
- 4 replies
-
- app
- subversion
-
(and 2 more)
Tagged with:
-
Why not use the vbs to call a webpage and pass info to it (in the url?), then process it using whatever script you like - asp, php etc. Almost tempted to knock something up myself, but am against time atm. EDIT: Or share from webserver and run a script file that way which does what you want
-
There are a lot of authentication mods for vbulletin. Try over at http://www.vbulletin.org
