I want to know when I login to a computer or domain. I want a pop up show me who has been logged on before me and what time he was logged on and date. By using Group Policy Script.
Hi, I'm running ubuntu on my notebook and I need a way to check (from the command line) if the power cable is connected. Is there any system file that keeps log of this? or is there a bash command that will help me?
I need this for a script that will behave differently depending on whether the power cord is plugged in or not.
Hi,
I am so tired to every day at 8:00 am open Skype program to my job. I need a little script to set the hour to open and the hour to close. Sorry for my worst english.
Thanks
I have a task that needs to be performed on my project schedule (3 weeks).
I'm able to set up cron to do this every week, or (for example) on the 3rd week of every month - but can't find a way to do this every three weeks.
I could hack the script to create temporary files (or similar) so it could work out it was the third time it has been run - but this solution smells.
Can it be done in a clean way?
I'm running on the localhost under admin login. And get forbidden everytime:
[Mon Jun 07 19:17:40 2010] [error]
[client 127.0.0.1] client denied by
server configuration: C:/WebPages/
<Directory "C:/WebPages/*">
Order allow,deny
Allow from all
AddHandler wsgi-script .wsgi
Options ExecCGI
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /cms66.wsgi/$1 [QSA,PT,L]
</Directory>
ive got a printer in my Active directory but its standard set to double sided printing but the problem is the printer doesnt support that so you have to switch it manualy
Ive found the setting for the user but it is automatically set to the original value if you reboot Where can i find the setting in the active directory ? the printer is a :HP Color LaserJet CP1510 Series PCL 6
(its possible that there is a script for this but i dont know where to look)
Recently an employee deleted their entire mailbox before leaving the company and there was no litigation hold in place.
Is there any way to recover all of the deleted items, preferably via a PowerShell script? We'd need to recover all of the folders, subfolders, and online archives.
I realize we can recover emails one by one up to a point but this will take far too long to be feasible.
Thanks in advance!
How to delete duplicate restored user files with "(2)" added (Win7)
I restored my user files on windows 7 system from the Win 7 backup. I selected the wrong restore option and all files were restored. Existing unchanged files were restored with the text string " (2)".
Is there a way to write a batchfile or script to do this operation?
Example file name:
"01 lesson 1"
"01 lesson 1 (2)"
I want to delete all files which had " (2)" appended on restore.
I have an SDK that must install 32-bit and 64-bit files in the correct places under /usr/lib
for a variety of Linux distributions.
For example, it appears that for Fedora, /usr/lib64 is the 64bit lib, but for Debian based systems, /usr/lib is the 64bit directory.
I want to find out if there is a reliable way to determine the correct locations.
More specifically, is there a way an install script can determine programmatically which are the correct equivalents for /usr/lib for 32- and 64-bit libraries on a given distribution?
I have been searching for a way, script, rain dance, to automate the deployment of several BESR 8.5 created images (v2i file extension). Does anyone have any experience on how to pull this off?
I have tried Ghost Solution Suite 2.5, but it doesn't seem to work with images that are password protected.
Any help, tool, 3rd party program, etc, would be greatly appreciated.
Thanks
I have been searching for a way, script, rain dance, to automate the restore of several BESR 8.5 created images (v2i file extension). Does anyone have any experience on how to pull this off?
I have tried Ghost Solution Suite 2.5, but it doesn't seem to work with images that are password protected.
Any help, tool, 3rd party program, etc, would be greatly appreciated.
Thanks
My script is about sending notfication email, and it was running well on my local machine, but when I removed it to an server 2k3, the email cannot be sent out with below error log:
Exception calling "Send" with "1" argument(s): "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was
not authenticated"
At line:1 char:19
+ $smtp_buglist.Send <<<< ($mail_buglist)
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
Please help me out of this, I am confused.
I think I have a shell script (launched by root's crontab) that's stuck in a loop. How do I list running scripts and how can I kill them?
I'm running Ubuntu 9.04, but I imagine it's similar for all *nix systems...
I have a bunch of vim plug-ins installed. I want to get a notification when a new version comes out. Each plugin page on vim.org (e.g., http://www.vim.org/scripts/script.php?script_id=3025) doesn't have an RSS feed.
How do you keep your vim plugins updated?
Pretty much all the text that I have read on enabling Hindi (Complex Text Rendering) involve enabling it via Regional Settings Languages Install files for complex script support and left to right languages (including Thai).
However, I am able to read Wikipedia without having this feature enabled. Is this normal or is this an anomaly with my Win XP SP1 CD?
I set the global settings of the machine to use an autoproxy configuration script. e.g. http://autoproxy.mycompanydomain.exe:8080, but still there are some network apps that require an explicit proxy setting. I assume that this is because those apps don't know how to access the global proxy settings. How can i see the global proxy settings that were configured automatically so i can copy them to the settings of these troublesome apps?
If I can't ssh as root to each of my servers how can I make modifications in an efficient way?
I am not allowed to setup ssh keys or open the sudoers file with NOPASSWD. I can't install puppet or spacewalk.
Sometimes when I try to include a sudo command in a script I get the error "no tty present." Has anyone worked in an environment like this?
Is there a native way to get a simple HTML / XML & XSD output for Apache VHost and Directives?
On console I write:
apachectl -S
If there is no native one, is there an (open) Script / Tool (php, perl, etc.) managing this.
I'm NOT looking for server management but just for a "server config overview" which might be (iframe) included in a wiki page for references on different development machines.
I need to receive SMTP mail and pipe it to a program. Can the IIS SMTP server deliver mail to a script or program?
I've looked on 2008 R2, but don't see an option for this.
I am working on my MacBook Pro. In the office I have 1 27" Monitor attached to it, at home I tend to work without an second monitor. For that setup I want to change the wallpaper if no 2nd monitor is attached.
Is there a app that helps me do that? Can I do this with applescript without manual activating that script?
Is there a way to get rid of escape codes in terminal output?
Say even if the script are sending that codes they are ignored by terminal and text displayed as is, without colors, bolds etc.
I need to display terminal output on a HTML page.
For now i'm using javascript to remove escape codes, but it becomes clunky cause i receive output by chars, and have to wait until all content received then update it, leading in weird effects.
i following the tutorial of the
http://www.howtoforge.com/mirror-your-web-site-with-rsync-on-fedora-10
i have completely step by step following the instructions and setup the key, script
my problem is when i use server1 to type the command , it still prompt me for password.
then i look the /var/log/secure, i 've found the message
Authentication tried for root with correct key but not from a permitted host (host=123132132312.static.ctinets.com, ip=20x.80.236.xxx).
can anyone help?
Hi,
I am so tired to every day at 8:00 am open Skype program to my job. I need a little script to set the hour to open and the hour to close. Sorry for my worst english.
Thanks
I'm looking for a Windows program/script/command line function that works like Linux's watch program.
watch periodically calls another program/whatever and shows the result, which is great for refreshing an output file or similar every second:
watch cat my-output.txt
or, more powerfully:
watch grep "fail" my-output.txt
I've looked for it in cygwin's library, but it doesn't seem to be present.
I'm on a Mac (10.6.5). Here's an example of what's going wrong:
[m@m ~ (master)]$ cd ~/Documents
[m@m ~/Documents (master)]$ cd ~/Applications
[m@m ~/Applications (master)]$ cd ~/Library
[m@m ~/Library (master)]$ cd ~/Sites/somesite
[m@m ~/Sites/somerepo (FEATURE_SOMEFEATURE)]$
Here's the relevant contents of my .bash_profile:
source ~/.git-completion.bash
PS1='[\u@\h \w$(__git_ps1 " (%s)")]\$ '
I'm using the standard git-completion script - I just copied it to my home directory.