| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,244
» Latest member: dangyc
» Forum threads: 4,031
» Forum posts: 16,406
Full Statistics
|
| Online Users |
There are currently 247 online users. » 0 Member(s) | 244 Guest(s) Baidu, Bing, Google
|
| Latest Threads |
how to allow only steam t...
Forum: Xorg Problems
Last Post: moquber
2026-03-17, 09:40 PM
» Replies: 0
» Views: 299
|
Wi-Fi works for a few min...
Forum: Network Problems
Last Post: kabifff
2025-12-15, 12:57 AM
» Replies: 0
» Views: 672
|
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 4,029
|
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 125,243
|
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 75,397
|
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 5,407
|
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 9,227
|
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 47,569
|
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 166,533
|
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 98,055
|
|
|
| Monthly defrag and reboot |
|
Posted by: Digerati - 2003-12-17, 09:26 PM - Forum: How Do I?
- Replies (3)
|
 |
I am thinking about scheduling a batch script I wrote to defrag these win2k machines and then reboot them on the first day of each month at the stroke of midnight.
Anyone have any opinions on this?
Here is the batch file to reboot everyone if they are connected to the network and are up and running.
@ECHO OFF
Ping 2202|Find "TTL=128">NUL
IF NOT ERRORLEVEL 1 GOTO REBOOT1
Ping 2203|Find "TTL=128">NUL
IF NOT ERRORLEVEL 1 GOTO REBOOT2
Ping 2204|Find "TTL=128">NUL
IF NOT ERRORLEVEL 1 GOTO REBOOT3
Ping 2205|Find "TTL=128">NUL
IF NOT ERRORLEVEL 1 GOTO REBOOT4
Ping 2207|Find "TTL=128">NUL
IF NOT ERRORLEVEL 1 GOTO REBOOT5
Ping 2209|Find "TTL=128">NUL
IF NOT ERRORLEVEL 1 GOTO REBOOT6
Ping 2210|Find "TTL=128">NUL
IF NOT ERRORLEVEL 1 GOTO REBOOT7
Ping 2212|Find "TTL=128">NUL
IF NOT ERRORLEVEL 1 GOTO REBOOT8
Ping 2215|Find "TTL=128">NUL
IF NOT ERRORLEVEL 1 GOTO REBOOT9
Ping 2216|Find "TTL=128">NUL
IF NOT ERRORLEVEL 1 GOTO REBOOT10
Ping 2218|Find "TTL=128">NUL
IF NOT ERRORLEVEL 1 GOTO REBOOT11
:REBOOT1
shutdown \\2202 /R /T:05 /C
:REBOOT2
shutdown \\2203 /R /T:05 /C
:REBOOT3
shutdown \\2204 /R /T:05 /C
:REBOOT4
shutdown \\2205 /R /T:05 /C
:REBOOT5
shutdown \\2207 /R /T:05 /C
:REBOOT6
shutdown \\2208 /R /T:05 /C
:REBOOT7
shutdown \\2209 /R /T:05 /C
:REBOOT8
shutdown \\2210 /R /T:05 /C
:REBOOT9
shutdown \\2215 /R /T:05 /C
:REBOOT10
shutdown \\2216 /R /T:05 /C
:REBOOT11
shutdown \\2218 /R /T:05 /C
Thats all well and good, but it may be totally not needed.
My sheduled script to defrag is=defrag.vbs
set WshShell = CreateObject("WScript.Shell")
WshShell.Run "dfrg.msc"
WScript.Sleep 1000
While WshShell.AppActivate("Disk Defragmenter") = FALSE
WScript.Sleep 1000
Wend
WshShell.AppActivate "Disk Defragmenter"
WScript.Sleep 200
WshShell.SendKeys "%A"
WScript.Sleep 200
WshShell.SendKeys "D"
While WshShell.AppActivate("Defragmentation Complete") = FALSE
WScript.Sleep 5000
Wend
WshShell.AppActivate "Defragmentation Complete"
WScript.Sleep 200
WshShell.Sendkeys "{TAB}"
Wscript.Sleep 500
WshShell.Sendkeys "{ENTER}"
Wscript.Sleep 500
WshShell.Sendkeys "%{F4}"
I want it to run and then reboot the machine when done.
Here is a script to reboot the machine=reboot.vbs
strComputer = "ComputerNAme"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Shutdown)}!\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Reboot()
Next
If I can combine these into one script it would reboot after the defrag and I would have it only schedule one thing.
How do I combine these scripts?
Can it simply be added at the bottom?
My goal is to defrag the pc's at midnight on the first of the month and then reboot when finished.
|
|
|
| Apache Web Access |
|
Posted by: kZo - 2003-12-17, 08:03 PM - Forum: LAMP
- Replies (6)
|
 |
I need to keep port 80 forwarded to my server. However, I do not want people from outside my LAN to view certain parts of the webpage.
For instance:
I would like my LAN 172.31.x.x to view all pages on [/url]http://myserver/*
But:
I don't want my WAN x.x.x.x to view all pages, just like [url=http://myserver/wan/*]http://myserver/wan/*
any suggestions? :)
|
|
|
| Forum Moderator added |
|
Posted by: anyweb - 2003-12-17, 04:13 PM - Forum: Site News
- Replies (5)
|
 |
hi all,
please congratulate and support kZo on becoming a Moderator of linux-noob.com/forums
well done kzo, keep up the good work and get some new members ;)
cheers
anyweb
|
|
|
| Car MP3 player. |
|
Posted by: kZo - 2003-12-17, 03:18 PM - Forum: How Do I?
- Replies (9)
|
 |
I have given a lot of thought about this project. I think that I would like to go ahead and move forward with this.
Final Product:
A fully functional mp3 player for my car. That shuts down when ignition shuts off, and starts up when ignition starts. I want it to pick up where it left off. Starting off with the last song played is okay, but not prefered.
Hardware:
Currently I have a Toshiba P150 32mb ram. This has a tiny keyboard with ps2 eraser tip mouse. I would love to have this as my keyboard/mouse. I also have a 12-13" LCD that I would like to mount underneath my current stereo. Everything else, can be changed.
If you have any suggestions, I'd love to hear them.
|
|
|
| Linux - Nvidia Graphics |
|
Posted by: kZo - 2003-12-17, 03:14 PM - Forum: nVidia Problems
- Replies (1)
|
 |
As we know Nvidia has started supporting linux and graphics. This is highly a great thing. Yet I am still a little disappointed that I have not read anything about "Video Out" with nvidia.
I currently have a Gforce 4 Mx 440 128mb, with video out. I would like to try an get that to work properly, however... I'm unsure even where to begin.
I as well have a laptop with a 440 go in it. With video out as well. Right now because of that, I have kept my multi-media over with windows. I would certainly like to find some information if anyone has any. [img]<___base_url___>/uploads/emoticons/default_rolleyes.gif[/img]
|
|
|
| NAT and Linux |
|
Posted by: kZo - 2003-12-17, 01:57 PM - Forum: Network Problems
- Replies (3)
|
 |
I'm currently running SSH on one of my Nix boxes at work. SSH works perfectly inhouse. However for whatever reason I cannot hit the external IP and have it connect.
I guess my question is,
If I have a firewall in place, and it's pointing to port 22, to my email server, why would I not be able to connect via SSH.
Ipchains/Iptables is not started.
Host.deny Host.allow are not there.
So, what else could block my ip from connecting? Is there a setting within the SSH config?
|
|
|
| Sroll Mouse |
|
Posted by: kZo - 2003-12-17, 05:55 AM - Forum: How Do I?
- Replies (2)
|
 |
Alright, this isn't a good day. I swear, I really hope tomorrow suites me much better.
I've just moved all my PC's around. So, I have this stupid KVM switch and I have a prefectly good mouse, with scroll button.
Worked before I moved, now scroll won't.
Anyone know a simple fix?
Code: [root@diemouse]# apt-get install big hammer
Will that work?
|
|
|
| MSIMN.EXE |
|
Posted by: kZo - 2003-12-16, 10:02 PM - Forum: How Do I?
- Replies (6)
|
 |
I'm working on a machine right now. Outlook fails when I go into the "inbox" can anyone explain what is going on with this?
I get fatal exception error. I check on MS website, and it says corrupt *.dbx files. So I am installing IE 6.0 and new version of Outlook to hope to correct problem. I hope this works.
Any other suggestions?
:(
|
|
|
|