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.
I want to write a perl script which logs into cisco switches via telnet and parses the output of show mac-address-table. The problem is that different switches show me a different field layout.
The WS-C3548-XL shows the fields in the order
Destination Address Address Type VLAN Destination Port
while the C2960 shows it like
Vlan Mac Address Type Ports
is there a way to tell show to print the fields in a predefined order?
Apparently the .NET framework has a bug that prevents working set values above 2GB from accurately being determined. Between 2 and 4GB one can apply some xor-ing calculation to obtain the value, but there's no means of obtaining working set values greater than 4GB (using .Net or WMI)
What method can be used - preferably from a PowerShell script - to obtain an accurate measurement of a process' working set when the working set is greater than 4GB?
(some side details can be found in this StackOverflow question)
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?
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!
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?
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 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 am trying to write a bash script that will rsync only a specific subset of folders. I am trying to figure out a more slick so that I can just add a variables such as FOLDER1='name of folder in home directory' and then
rsync -arvz --delete /home/emka/$FOLDER1/ /home/emka/Desktop/Mount/$FOLDER1
Currently I have FOLDER1 through FOLDER13, but I do not want to have the above line thirteen times.
Could someone give me a push on how to do this?
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...
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.
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?
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
I'm running a certain script that is using a non-root user to do the following...
mkdir: cannot create directory `/srv/www/example.com/releases'
*** [err :: 12.23.45.789] : Permission denied
How would I allow user xyz to have permanent permissions to do so and still keep this web server secure? Also is it possible to make it recursive for all subfolders?
I know its probably chmod something but I'm not that linux savy, thanks.
Does anyone know if it's possible (or know of an existing vim script or plugin) that can create a "status bar" that shows the name of the current class and method (or function) I'm editing?
I'm imagining that it would plug into the syntax parser for the filetype of the current buffer, and display a breadcrumb trail to show you what you're currently editing. I don't know vimscript well enough to suggest any more than that, but if there aren't any good solutions already, I may begin to hack on one, so suggestions as to where to start are welcome, too!
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?
This question is an exact duplicate of:
Find all duplicate files by md5 hash
1 answer
I have a folder with osme images. Each of them has a different name but some of them are duplicate.
What is the best way to delete the duplicates? I have to do it sistematically so I need some shell command/script to invoke.
No limitation of used software, just no strange software..
I'd like to do it both in a Mac and in a Ubuntu systems
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?
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 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'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.
I have 3 instance of solr running
using tomcat (in shell u will find something like -Dcatalina.base=/usr/local/apache-tomcat-6.0.35 -)
suing tomcat_1 (in shell u will find something like -Dcatalina.base=/usr/local/apache-tomcat-6.0.35_1 -)
using tomcat_2 (in shell u will find something like -Dcatalina.base=/usr/local/apache-tomcat-6.0.35_2 -)
Can i write a shell script which can kill the particular instance
for 1 : kill tomcat but not tomcat_1 & tomcat_2
for 2 : kill tomcat_1 but not tomcat & tomcat_2
for 3 : kill tomcat_2 but not tomcat & tomcat_1
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?
I am writing a RHEL kickstart script, and in my %post, I need to install a JRE.
Basically, the current setup involves me needing to manually go in after first boot and set the newly installed JRE as the default using the alternatives --config command. Is there a way for me to pass arguments to alternatives so I don't have to manually pick the correct JRE?
Hi folks,
I would like to issue a command from a bash script to clear the terminal it is running from:
-I don't want to clear the bash history (history -c)
-I don't want to issue the clear command (which moves the terminal down to the last prompt, giving the impression the terminal has been cleared, but previous output remains visible if you scroll up)
-I want to completely remove all previous output to my terminal and have it clean as if I was opening a new one
Thanks.