Hot answers tagged

2

Sounds like it needs to run when your system gets to runlevel 3. Try moving your script to /etc/rc3.d/S50scriptname


2

Depending on which you think is more consistent, the 11th line, or the last line, you could use either sed or tail, respectively. I would prefer sed as it handle multiple files more cleanly, and also ensures that files with fewer lines are included. So, then, you would just need a list of your files. This could be done with globbing, if they are all in the ...


2

If you're not able to use Group Policies to get this configured, then check these registry keys, create them if they don't exist, and adjust accordingly for your needs. Locate and then check the following three registry subkeys, and then change the values of the Default_Page_URL and Start Page entry to your desired website. HKEY_CURRENT_USER\...


1

Configuring the IE Home Page Solutions. . . Fortunately there are several workarounds for this issue. First, if you want to force users to use a particular home page for IE on their corporate users, you can use the following Group Policy setting to do this: Disable changing home page settings This policy setting is found under this ...


1

A better option would be to use the logging features of whatever software you are using to stream. Trying to monitor the network traffic can be tricky and not always give you a clear picture of your actual activity. Most any service which is streaming video should have some sort of logs it can output, if for nothing more than debugging. Simply check the ...


1

The easiest solution to this would be powershell as it's built into Windows since win 7. Your problem seems to be relatively easy and straight forward. On Windows 7 open your start menu, type powershell and launch powershell ISE. Now you can start. What you want to do: Read csv Check each line if condition is met when condition is met, check which ...


1

My general idea: Run the script from .bashrc in background: /foo/bar/script & or maybe a better alternative: nohup /foo/bar/script & The script should check if another instance of it has been started, it should silently exit if so. I don't know Ruby but it should be possible (in case it's not: build "wrapper" script in Bash that does the ...


1

Move all images whose names appear in a txt file to a new folder using the windows command line I am trying use the text file as a list Then move all the JPEG files on that list from their Current folder to the Destination folder Below is an example batch script that will work for the need based on the logic examples you provided. @ECHO ON ...


1

Next commented code snippet should do the job: @ECHO OFF SETLOCAL EnableExtensions DisableDelayedExpansion rem delete auxiliary variables for /F %%G in ('set ___ 2^>NUL') do set "%%G=" rem count up number of occurrences for /F tokens^=2^ delims^=^" %%G in (' FINDSTR /C:"Widget Name=" "configure.txt" ') do set /A "___%%G+=1" rem subtract 1 to ...


1

WinGet, id, list,,, Proram Manager Loop, %id% { this_ID := id%A_Index% If NOT IsWindow(WinExist("ahk_id" . this_ID)) continue WinClose, ahk_id %this_ID% break } return ;This checks if a window is, in fact a window. ;As opposed to the desktop or a menu, etc. IsWindow(hwnd) { WinGet, s, Style, ahk_id %hwnd% return s & ...


1

How to unlock Windows 7 screen using script You can define and save an RDP file with all needed options, and point it to the machine to make the connection. You will set the configuration to save the credential and then enter and save the credential values. Now each time you double-click the RDP icon (from that same account and machine you created it on), ...


1

Expanding on grawity's great answer: First, to answer your question: Why does the batch script terminate when %CHECKCONTINUE% is given a null value? The problem is, in line 16, you do this: if %CHECKCONTINUE%==n GOTO exit Since CHECKCONTINUE is "undefined", it evaluates to an "empty" string, so the statement on line 16 is actually doing: if ==n GOTO ...



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