Tag Info

Hot answers tagged

4

As root lsof | wc -l This will give you the number of lines returned by lsof. This utility lists all open files, including things like network sockets, so also man lsof for more options on what types of files are displayed.


3

Based on my answer at one of the questions you linked to: awk '{ ex = index("KMG", substr($1, length($1))) val = substr($1, 0, length($1) - 1) prod = val * 10^(ex * 3) sum += prod } END {print sum}' Another method that's used: sed 's/G/ * 1000 M/;s/M/ * 1000 K/;s/K/ * 1000/; s/$/ +\\/; $a0' | bc


3

Not sure why you are confused. Microsoft has clearly stated since the release of multicore processors that they were licensing PER SOCKET, not per core (Oracle, is (was?) licensing per core, for example). Server 2003 and 2008 are BOTH multicore aware. And 2008 R2 will increase the maximum supported cores to 256. Being Multicore aware means that the ...


3

To be honest, if it were me, I would work on making my Robocopy BAT files less silly and sloppy. Can you describe what actual problems you were having with using it? Those are probably surmountable - after all, copying files is exactly what robocopy is made for.


2

Driver Detective actually works quiet well. It looks at your hardware and provides a list of URL's that provide the most update driver if the current one is out of date. As Peter commented you do end up paying for it however I paid for it around 3 years ago and they have not hassled me for more money since then. Peter if you could say how much it costs that ...


2

Windows 2008's version of Robocopy handles permissions correctly, invoking the Backup privilege (via the /B or /ZB switches) when needed to override ACL's restrictions that would deny the account running the copy direct access to files\directories. It also supports multithreaded copies (via the /MT switch, default is 8 max is 128). The /Z (or /ZB) switch ...


2

If you need a programmatic way, there is the environment variable NUMBER_OF_PROCESSORS or there are the WMI interfaces. But as Multiverse said, you can't use the processor without going through the OS, and Task Manager will tell you the truth.


2

If you're just trying to log it to a text file you can do something like the following: "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\osql.exe" -E -Q "Use [Database] DBCC SHRINKFILE(Database_log, 50)" >> C:\ShrinkFile.LOG The >> will append or > to overwrite. If you want SQL server to actually log it in the error log then I would suggest looking ...


2

You can use Process explorer from Microsoft sysinternals, it's free Once launched, drag the target symbols from the menu bar upon your hanged windows. It will then highlight the process owning this window. This is just a small hint, this tool is heavy can do a lot more..Learn it !


2

Nothing built-in I'm aware of. If you have PowerShell installed you can use System.Net.WebClient for that, even though you may still want a wrapper for ease of use: $wc = New-Object Net.WebClient $wc.DownloadFile('http://...', file) But if you first need to install something, then there are many other options out there, too.


1

The Windows ftp client can use batch files in non-interactive mode. Create a plain-text file named sitename.scr containing the syntax below. This example connects to 10.130.0.1 as the user "jscott" with the password "mypass" and downloads binary file named "somefile". You will, of course, need to customize it to match your requirements. open 10.130.0.1 ...


1

tftp is perfect for this stuff! it requires a tftp server, but means you can do one line file download commands. It's been removed from the most recent MS server and client OS's because it makes downloading & installing virus payloads so easy! tftp -i x.x.x.x get file.txt


1

What about WinBITS?


1

You can use perl regular expressions to do this. For example, $value = 0; if($line =~ /(\d+\.?\d*)(\D+)\s+/) { $amplifier = 1024 if ($2 eq 'K'); $amplifier = 1024 * 1024 if ($2 eq 'M'); $amplifier = 1024 * 1024 * 1024 if ($2 eq 'G'); $value = $1 * $amplifier; } This is a simple script. You can consider it as starting point. Hope it will help!


1

Personally, I'd just not use the -h flag in the first place. The "human readable" version rounds off numbers which will need to be rounded again when you convert back, getting even less accurate. (For instance, 2.7MiB is 2831155.2 bytes. What did you do with the other 0.8th of a byte??!) Otherwise, you can ask units to convert MiB/GiB/KiB to just "B" and ...


1

I second using Procexp, it can be packed on a flash drive and is immensely useful, and can even be setup to replace task manager, and has saved me tons of work, though really everything Mark Russinovich makes is quite awesome.


1

timeout is part of coreutils, which should be installed anyway. Maybe the developers of your distribution have stripped away that utility.


1

Try this out-if the files are locked sometimes the ONLY way to delete them is during a reboot: http://www.docsdownloads.com/Tier1/dr-delete.htm


1

You didn't specify if its something that has to be done at a specific time or if you just need files deleted that are stubborn. What about Movefile from sysinternals? It schedules up the deletion (just set the destination as "" to delete) to occur during reboot before anything can get a handle on the files: ...


1

Well I'd still go for robocopy for that but, both home and at work I am completely dependant on Directory Opus as a replacement for the Windows Explorer file manager hence including multiple file listers and operations. And it can be licensed and run from a USB stick or similar without installation... Some settings might need tweaking, like showing extra ...


1

How to do you get the status? Specifically of the projectors? My honest recommendation would be - since it would probably be useful for your techs as well - to setup a minimal Nagios install to monitor everything of interest, and then code up a simple PHP page to display the current status and comments/acknowledgment messages as you want. I've never seen ...



Only top voted, non community-wiki answers of a minimum length are eligible