Bash script won't run "sudo reboot" under cron, but perfect manually
Hi Archers,
I've got a weird problem with a bash script I use to run pacman and mythtv updates once a week via cron which also reboots itself so that new mythtv and kernels packages become active. This script works likes a charm when I run it manually as user from the command line. But when cron runs it (also as user) it executes everything EXCEPT the last "sudo reboot" command at the end. Sudoers seems to be setup right as it works fine from the command line. I could run this particular script with cron as root but I'd prefer not to update under root with the --asroot command.
Any ideas? It seems like the permissions running manually and with cron are different somehow.
Many thanks!
Last edited by wdirksen (2012-10-09 13:07:28)
OK, I'm going to reconsider this based on all your advices, but I'm still curious about why the command doesn't execute with cron. Related to this, I also find it strange that some root commands work fine with sudo, while others only work within a true root environment
DSpider wrote:Post your /etc/sudoers file.
So here's my sudoers file:
## User privilege specification
root ALL=(ALL) NOPASSWD: ALL
mythtv ALL=(ALL) NOPASSWD: ALL
. . . and this is the script:
#!/bin/bash
sudo pacman -Syyu --noconfirm
/usr/share/mythtv/optimize_mythdb.pl
/usr/share/mythtv/mythconverg_backup.pl --rotate 20
mythtvname="mythtv-git-$(date +%Y%m%d)-1-x86_64.pkg.tar.xz"
cd /home/mythtv/AUR/mythtv-git
makepkg
sudo pacman -U $mythtvname --noconfirm
sudo reboot
Anything stick out here?
Last edited by wdirksen (2012-10-09 19:32:52)
Similar Messages
-
My imac has been running without problems under OS X Snow Leopard and bootcamp running Windows XP for a long time. I had received a Sony MP3 player and wanted to install the software on my computer. At the time I had a CD in my drive slot because I was getting ready to install some brother's software for a printer I wanted to use. I restarted my imac under bootcamp and started installing the Sony software in Windows XP. I was having problems with the install and decided to restart XP to see if that would help. It's been several days since this originally happened so I'm not of sure of any more specifics at this point other than I've had to use windows machines for a long time and know that basically when in doubt "restart".
When my imac was restarting I heard everything spinning up, the white light came on, but I heard no chime, a blue screen came up for about 15 to 30 sec. and then it went to a black screen with DOS characters giving the following message:
Windows could not start because the following file is missing or corrupt: <Windows root>\system32\hal.dll. Please re-install a copy of the above file.
I do have a copy of Windows XP, but my first problem was that I still had a CD in the slot and it would not eject. I tried every keyboard combination I could find including: eject button, F12 and holding down the mouse button at start-up and nothing worked. I also tried every other start-up keyboard combination I could find at Apple Support jut to see if I could get my imac to start up under OS X . I finally went on youtube to find out how to remove the CD. I ended up opening up my imac and taking off the cover of the CD drive to remove the disk. After putting everything back together I put in my Windows CD and tried restarting again. The exact same thing happened and I ended up at the DOS screen. Then I thought maybe my keyboard wasn't working so I replaced it with a new one. Same result. I also thought to plug both of my apple keyboards into my windows 8 laptop (hate it!) to see if they worked there at all. They both did so I'm sure the keyboards are not the problem.
At this point, since I do now have a windows 8 laptop (hate it!) there is no remaining reason for me to keep a bootcamp partition on my hard drive. My question is where do I go from here? I have a current time machine back-up on an external hard drive and I have my install CD for OS X Snow Leopard. How do I get my imac back up and running? Thanks.Can you OPTION boot? If so, then choose the OS X volume to boot back into OS X. From there you can use Boot Camp Assistant to remove the Windows volume and restore the drive.
Boot Using OPTION key:
1. Restart the computer.
2. Immediately after the chime press and hold down the
"OPTION" key.
3. Release the key when the boot manager appears.
4. Select the desired disk icon from which you want to boot.
5. Click on the arrow button below the icon.
Five ways to eject a stuck CD or DVD from the optical drive
Ejecting the stuck disc can usually be done in one of the following ways:
1. Restart the computer and after the chime press and hold down the
left mouse button until the disc ejects.
2. Press the Eject button on your keyboard.
3. Click on the Eject button in the menubar.
4. Press COMMAND-E.
5. If none of the above work try this: Open the Terminal application in
your Utilities folder. At the prompt enter or paste the following:
/usr/bin/drutil eject
If this fails then try this:
Boot the computer into Single-user Mode. At the prompt enter the same command as used above. To restart the computer enter "reboot" at the prompt without quotes. -
PHP script won't run in the background
Hi all
Hope someone can help me with a weird issue I have...
I am trying to run a php CLI script in the background and it just won't run - it has a status of Stopped SIGTOU (Trying to write output) - Here are the details
OS
Mac OS X Lion 10.7.2
PHP
PHP 5.3.6 with Suhosin-Patch (cli) (built: Sep 8 2011 19:34:00)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
I created a basic script test.php
<?php echo 'Hello world'.PHP_EOL; ?>
Here are the results of various tests:-
Test 1) php -f test.php (Hello world gets displayed)
Test 2) php -f test.php >test.log 2>&1 (Hello world gets put into test.log)
Test 3) php -f test.php >test.log 2>&1 & --- I get [1]+ Stopped(SIGTTOU) php -f test.php > test.log 2>&1 -- and the job just sits there doing nothing nothing gets logged however lsof shows the log file is open
It has to be something to do with Apple's php build because a similar bash shell script gets executed no problems in the background...
This has me stumped ... any ideas? What can I do to find out what is going on ...?
TIA
RichJust realized your trying to load the php files by using the File->Open menu item in the Browser. That won;t work.
You have to load the php file by placing it in the Sites folder and entering http://localhost/file.php
(or if you have user Sites enabled http://localhost/~user/file.php)
The reason it is grayed out is that the browser doesn't run (or know of) php files. The web server runs those (via php) and the output of the file goes to the web browser.
This page How to enable Web Sharing in OS X Mountain Lion does a pretty good job of explaining it. (as does the user tip I lonked to before) -
Script won't run from the Desktop
I have a bash script that says something ordinary:
#!/bin/bash
/Applications/synergy/synergys -f --config /Applications/synergy/synergy.conf
exit 0
It is associated with the Smultron editor and I want it to run in a terminal (or invisibly) when I click a desktop icon. Now it is just displayed by Smultron.
When I try to change 'Open with:' to 'Terminal' it says 'you don't have privileges to change the application to this document only. Do you want to change all your Smultron.app doc.s to open with application 'Terminal.app'? I continue and ...nothing happens.
ls -al synergys.sh gives
-rwxr-xr-x@ 1 chrism admin 70 30 May 2008 synergyc.sh
How do I get the ** script to run when clicked, please?I've never seen an erro like you getting about not being able to change the default app for just this file. try rebuilding your launch services database. run this in terminal
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
and try changing the default app again. you should certainly be able to assign terminal to open this file or all .sh files. -
I know very little about applescript, so please be gentle with me...
I have a script (written by someone else) which copies some folders to a flash drive (for offsite backups). It launches, mounts disks, clears the old files off of the flash drive, then does the copy. It is set to run at 2am. Every morning I come in, and the machine has an "Apple Event timeout" panel up, and the script has terminated without running the backup. I then double-click on the script and it runs flawlessly.
A couple of details...
After the script mounts disks, it puts up an alert panel that says "All drives are now mounted". That panel is set to time-out and for the script to continue if nobody clicks on the "ok" button.
If I am running interactively, and I sit there and watch the panel, then it times out after the allotted 15 seconds, and the script then copies just like it's supposed to. HOWEVER -- if I shift to another application (for example I select the Finder to go check on some other files), then I don't see the panel (of course) because my script doesn't have focus. But the little applescript icon jumps in the dock. If I sit there, not acting on the jumping icon, not bringing the script to front, then I get the "Applescript timed out" message and the script fails.
Does anybody recognize this problem and could you give me some ideas on how to fix it?Well, it seems to me that the dialog serves no useful purpose, so I'd delete the line in the script that displays the dialog. It's a horrible user interface that interrupts the workflow to tell you everything's normal (or, at least, working as expected). Applications should warn/inform you of errors or unusual conditions.
If, for some reason, you want to keep the dialog then your best bet is to activate the application that's displaying the dialog. For example:
tell me
activate
display dialog "here's a really annoying dialog telling you everything's OK"
end tell
This will have the effect of bringing the script application frontmost before displaying the dialog, therefore overcoming the 'app in background' error you're running into. There's no trivial way, though, to set the focus back to the previous app, which just adds to the annoyingness of this pointless dialog. -
I had a very small script <a
href="javascript:window.close()" title="click here to close the
window">Close window</a>
running that would close a window when the user clicked on
the "Close window" button. It worked fine until I downloaded a
Dreamweaver extension program called "Well Rounded" which makes
rounded off boxes and windows. All of a sudden my script will not
longer work. I tried it on a new html fie, I tried rebooting.
Nothing works. I don't understand. Any help would be appreciated.
My site is www.equityinspection.com/newfirstpage2.html
Thanks
Mike>I basically have a AP Div that uses the timeline feature
to float up from the
>bottom after about two or three seconds after the user
gets to my home page.
>I need a control to allow them to close the page. Sounds
simple but I can't figure it out.
Doesn't make sense to me. Why would a visitor want to close
your home page? Assuming they do, why can't they just use the
browsers own close controls? Are you trying to hide the div? If
that's the case, the window.close() won't do that. -
Automator shell script won't run
Hi,
I'm putting together a little Automator app that opens whenever I double-click on an .exe file and opens that file with wine. So far, however, I've had little luck. I've created a shell script automator app with the following script:
for f in "$@"
do
/usr/local/bin/wine "$f" &
done
Outside of Automator the script works just fine. However, as an Automator app it doesn't work at all; nothing happens, even though Automator tells me that that the workflow was successfully completely. What am I doing wrong?
Thanks,
AlexAutomator uses /bin/bash as the shell.
Running your script interactive has a different environment from running under Automator. For one thing, stdin/stdout/stderr are pointing to a tty (actually a pseudo device /dev/pty). Perhaps this is affecting how Wine us behaving.
Other issues might be where your current working directory is located, or some environment variable (such as PATH) that is not the same under Automator that exists when running interactively.
You might try capturing things like
( printenv
pwd
id -a
echo "\$# $#"
) >/tmp/automator.environment -
Script won't run on machine w/MAC OSX Server 10.4.9
Why won't the following script work on a machine that is running MAC OSX Server 10.4.9. On Machines running Mac OS X 10.4.9 it works fine, but on my server machine it won't name the file as per the script--the menu dialog box pops ("save as") up asking for a file name.??
The only difference between the machines as far as I can tell is the OS.
Thanks.
Pedro
global fileSpec
tell application "TextEdit"
activate
tell application "Finder" to set visible of process "TextEdit" to false
tell application "Finder"
set theFileName to "Date.rtf"
set fileSpec to "Photo [Data]:Archive error LOG:" & theFileName
end tell
save document 1 in fileSpec
tell text of document 1
set the size to 20
set the font to "Lucida Grande"
end tell
close document 1 saving yes
end tell
G5 Mac OS X (10.4.9)Edit: sorry, you should be choosing a folder, not a file. Try this script instead.
tell application "Finder"
activate
set tempy to choose folder
display dialog ("" & tempy)
end tell -
Simple Script - won't run - please help
I've written a very simple script to check to see if a volume is mounted and then copy a directory to that volume if it is mounted:
#!/bin/sh
# check to see if network space mounted by looking for known folder
if [ -d /Volumes/backupvolume ]; then
cp –R /Users/username/Documents/foldertobebackedup /Volumes/backupvolume/username
fi
I made sure the cp command works by running it in the terminal - no trouble there.
According to what I see in Xcode, all the syntax is correct and there are no errors.
I then run the test on the script (per the Bombich instructions):
sudo u+x /Users/user/backupscriptingtests/190520100730.sh
I'm then required to enter the password (which I do and it accepts it)
The next thing that happens though is the following error appears:
sudo: u+x: command not found
Any ideas on what I'm entering incorrectly here? Eventually, this script will be a logout hook to copy files for a user as a backup. This process seems like it should be very simple, which is why I'd rather do it this way instead of buying a backup program.
Thanks!
FYI: The -d command has brackets, left bracket with space at the beginning and space with right bracket just before the ;
Message was edited by: mcguirek
Message was edited by: mcguirekYou need to include the actual backup volume name and home folder name where backupvolume, username, and user are. If the backup volume name contains spaces or other special characters, precede them with backslashes or put the whole path in single quotes.
(53087) -
Script won't run automatically
I use Image Capture to download photos from my camera. I have set it to run an Applescript after download to rename all the downloaded files. The Applescript icon appears briefly in the dock but nothing happens. I have inserted a display dialog at the beginning of the script but it doesn't display. I have wrapped the script in Try/on error, with a display on error, but nothing appears. The script runs perfectly when run manually.
Any suggestions?
AKThe script is begins with "on run" and ends with "end run". It is saved as an application.
When Image Browser starts with a camera connected (in fact it auto-starts because the camera is connected) in the top pane of its dialog box there are two pop-ups, one to select the target directory and the other to select post-processing. The latter has options such as preview, crop, fit ... and "Other". Selecting Other allows you to browse to an application, in my case the saved script. Underneath this pop-up is written "occurs after downloading".
The pictures transfer, the AS icon appears in the dock and bounces a couple of times then goes away again without having done anything. I have just tried it with a couple of pictures, and get the impression that its appearance in the dock was shorter than last time I ran it, when there were 120 pictures in the download folder. This suggests (if true) that it is iterating through the files in the directory.
In case anyone can spot something stupid I'll paste the script below - but it works stand-alone.
AK
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run
try
set ThePath to "AKMacHD80p_1:Pictures:*IST:Incoming"
set TheFiles to list folder ThePath without invisibles
repeat with ThisFile in TheFiles
set CharList to characters of ThisFile
if item 4 of CharList is "P" then
set item 4 of CharList to "R"
renameFile ThePath & ":" & ThisFile to CharList as string
end if
end repeat
on error BadThing
display dialog BadThing as text
end try
end run</pre> -
Hi, I've just tried running Software Update on my iMac to install Safari 5.0.1. It downloaded it but stalled when running the installer scripts. I powered off the machine and restarted it, and there don't appear to be any issues with the system and I'm now using Safari 5.0.0 without problems. I run Software Update once a week and haven't had any such problems previously. Last night, Virus Barrier X6 also couldn't run its installer scripts on a weekly scheduled update, and I had to force quit the installer. My MacBook has run both of these successfully, just not my iMac.
Can anyone help?
ThanksThanks, I know that is an option but I was more concerned that my iMac doesn't seem to want to run any installer scripts
-
I'm having an issue with an application that uses a VBscript to install
and hope someone can help me.
It will work fine regardless where I put if you double click it, it will
also work fine from a batch file if you double click the batch. It will
not run correctly from either the Application Launcher or the command
line. I have tried putting it in as a post launch script using the
wscript engine, from the run line, I have also tried to use the
cscript.exe all to no avail.
When it is run any way other than double clicking directly on the vbscript
or batch file you can see wscript.exe launch in the task manager but the
CPU stay hung at 50%. No errors it just hangs.
I put all the install files in the expected
directory "c:\windows\Temp\3rdParty" along with the script and batch
files. Below is the vb script, is there something in it causing this?
I also included the command line that I tried using, this is the same line
from the batch file. Also I have run other VBscripts from the command
line this way. Any thoughts?
Command line: c:\windows\system32\wscript.exe
c:\windows\Temp\3rdParty\SetupLaunch.vbs
VbScript:
Set WshShell = WScript.CreateObject("WScript.Shell")
Dim strPackagePath : strPackagePath = WshShell.ExpandEnvironmentStrings("%
SystemRoot%\Temp\")
Dim strPackageSubdir : strPackageSubdir = "3rdParty"
Dim installdir : installdir = WshShell.ExpandEnvironmentStrings("%
SystemDrive%\Program Files\eEye Digital Security\Blink")
Dim backuppath : backuppath = installdir
Dim tmppath : tmppath = ""
Dim newpath : newpath = ""
Dim TristateFalse : TristateFalse= 0
Dim strValue : strValue = ""
Dim filesys, file, ts
Const ForAppending = 8
Const ForReading = 1
Err.Clear
ON ERROR RESUME Next
Set filesys = CreateObject("Scripting.FileSystemObject")
Set file = filesys.GetFile("settings.txt")
Set ts = file.OpenAsTextStream( ForReading )
Const HKEY_LOCAL_MACHINE = &H80000002
Set oReg=GetObject("winmgmts:{impersonationLevel=imper sonate}!
\\.\root\default:StdRegProv")
oReg.GetStringValue
HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","InstallP ath",strValue
if strValue <> "" Then
'Wscript.echo "Blink is already installed on this machine.
Aborting installation..."
Wscript.Quit
End if
'delete the remnant Blink folder
If filesys.FolderExists( installdir ) Then
filesys.DeleteFolder( installdir )
End if
'parse the MSI options file and see if the expanded paths are present
Do While Not ts.AtEndOfStream
if InStr(ts.ReadLine, "INSTALLDIR=") > 0 Then
AlreadyModified = 1
End if
Loop
if AlreadyModified = 0 Then
'Append the expanded paths to the MSI configuration file
(settings.txt)
Set ts = file.OpenAsTextStream( ForAppending )
ts.WriteLine("INSTALLDIR=" & installdir)
ts.WriteLine("THIRDPARTY=" & strPackagePath & strPackageSubdir
& "\eeyeremoteinstall.exe")
ts.Close
End If
Dim nIndex
nIndex = InStr(backuppath, "\")
while nIndex > 0
tmppath = Left(backuppath, nIndex)
backuppath = Right(backuppath, Len(backuppath) - nIndex)
newpath = newpath + tmppath
If Not filesys.FolderExists(newpath) Then
Set newfolder = filesys.CreateFolder(newpath)
End If
nIndex = InStr(backuppath, "\")
Wend
If Len(backuppath) > 0 Then
newpath = newpath + backuppath
If Not filesys.FolderExists(newpath) Then
Set newfolder = filesys.CreateFolder(newpath)
End If
End If
'create c:\windows\Temp1\3rdparty
if filesys.FolderExists(strPackagePath) = 0 Then
filesys.CreateFolder(strPackagePath)
End If
if filesys.FolderExists(strPackagePath & strPackageSubdir) = 0 Then
filesys.CreateFolder(strPackagePath & strPackageSubdir)
End If
strPackagePath = strPackagePath + strPackageSubdir
'get the current folder
set file = filesys.GetFile("settings.txt")
filesys.CopyFolder file.ParentFolder , strPackagePath
'Stop and delete the eEye Remote Install Service if is running on the
machine
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonat e}!
\\.\root\cimv2")
Set colServiceList = objWMIService.ExecQuery ("Select * from Win32_Service
where Name='eEyeRmtInst'")
For Each objService in colServiceList
objService.StopService()
objService.Delete()
Next
'Wscript.echo "Installing Blink. Please wait..."
WshShell.Run "cmd /C start /wait " & chr(34) & "Installing Blink..." & chr
(34) & " " & strPackagePath & "\Setup.exe /qn /Liom " & chr(34) &
installdir & "\BlinkSetup.log" & chr(34) & " OPTIONFILE=" & chr(34) &
strPackagePath & "\settings.txt" & chr(34), 0, true
'Enable debugging for Blink components (do so only if instructed by the
Support Department)
'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","Blinksvc ",2
'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","Blink",2
'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","Blinkrm" ,2
'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","cpupdate ",2
' Start the eEye Remote Install Service to finalize the deployment
Set colServiceList = objWMIService.ExecQuery ("Select * from Win32_Service
where Name='eEyeRmtInst'")
For Each objService in colServiceList
errReturn = objService.StartService()
WScript.Sleep(30000)
Next> I'm having an issue with an application that uses a VBscript to install
> and hope someone can help me.
>
> It will work fine regardless where I put if you double click it, it will
> also work fine from a batch file if you double click the batch. It will
> not run correctly from either the Application Launcher or the command
> line. I have tried putting it in as a post launch script using the
> wscript engine, from the run line, I have also tried to use the
> cscript.exe all to no avail.
> When it is run any way other than double clicking directly on the
vbscript
> or batch file you can see wscript.exe launch in the task manager but the
> CPU stay hung at 50%. No errors it just hangs.
> I put all the install files in the expected
> directory "c:\windows\Temp\3rdParty" along with the script and batch
> files. Below is the vb script, is there something in it causing this?
> I also included the command line that I tried using, this is the same
line
> from the batch file. Also I have run other VBscripts from the command
> line this way. Any thoughts?
> ______________________________________
> Command line: c:\windows\system32\wscript.exe
> c:\windows\Temp\3rdParty\SetupLaunch.vbs
> ___________________________________
>
> VbScript:
> ------------
> Set WshShell = WScript.CreateObject("WScript.Shell")
> Dim strPackagePath : strPackagePath = WshShell.ExpandEnvironmentStrings
> SystemRoot%\Temp\")
> Dim strPackageSubdir : strPackageSubdir = "3rdParty"
> Dim installdir : installdir = WshShell.ExpandEnvironmentStrings("%
> SystemDrive%\Program Files\eEye Digital Security\Blink")
>
> Dim backuppath : backuppath = installdir
> Dim tmppath : tmppath = ""
> Dim newpath : newpath = ""
> Dim TristateFalse : TristateFalse= 0
> Dim strValue : strValue = ""
> Dim filesys, file, ts
> Const ForAppending = 8
> Const ForReading = 1
>
> Err.Clear
> ON ERROR RESUME Next
>
> Set filesys = CreateObject("Scripting.FileSystemObject")
> Set file = filesys.GetFile("settings.txt")
> Set ts = file.OpenAsTextStream( ForReading )
>
> Const HKEY_LOCAL_MACHINE = &H80000002
> Set oReg=GetObject("winmgmts:{impersonationLevel=imper sonate}!
> \\.\root\default:StdRegProv")
> oReg.GetStringValue
> HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","InstallP ath",strValue
>
> if strValue <> "" Then
> 'Wscript.echo "Blink is already installed on this machine.
> Aborting installation..."
> Wscript.Quit
> End if
>
> 'delete the remnant Blink folder
> If filesys.FolderExists( installdir ) Then
> filesys.DeleteFolder( installdir )
> End if
>
> 'parse the MSI options file and see if the expanded paths are present
> Do While Not ts.AtEndOfStream
> if InStr(ts.ReadLine, "INSTALLDIR=") > 0 Then
> AlreadyModified = 1
> End if
> Loop
>
> if AlreadyModified = 0 Then
>
> 'Append the expanded paths to the MSI configuration file
> (settings.txt)
> Set ts = file.OpenAsTextStream( ForAppending )
> ts.WriteLine("INSTALLDIR=" & installdir)
> ts.WriteLine("THIRDPARTY=" & strPackagePath & strPackageSubdir
> & "\eeyeremoteinstall.exe")
> ts.Close
>
> End If
>
>
> Dim nIndex
>
> nIndex = InStr(backuppath, "\")
>
> while nIndex > 0
>
> tmppath = Left(backuppath, nIndex)
> backuppath = Right(backuppath, Len(backuppath) - nIndex)
>
> newpath = newpath + tmppath
>
> If Not filesys.FolderExists(newpath) Then
> Set newfolder = filesys.CreateFolder(newpath)
> End If
>
> nIndex = InStr(backuppath, "\")
>
> Wend
>
>
> If Len(backuppath) > 0 Then
>
> newpath = newpath + backuppath
>
> If Not filesys.FolderExists(newpath) Then
> Set newfolder = filesys.CreateFolder(newpath)
> End If
>
> End If
>
> 'create c:\windows\Temp1\3rdparty
> if filesys.FolderExists(strPackagePath) = 0 Then
> filesys.CreateFolder(strPackagePath)
> End If
>
> if filesys.FolderExists(strPackagePath & strPackageSubdir) = 0 Then
> filesys.CreateFolder(strPackagePath & strPackageSubdir)
> End If
>
> strPackagePath = strPackagePath + strPackageSubdir
>
> 'get the current folder
> set file = filesys.GetFile("settings.txt")
> filesys.CopyFolder file.ParentFolder , strPackagePath
>
>
> 'Stop and delete the eEye Remote Install Service if is running on the
> machine
> Set WshShell = WScript.CreateObject("WScript.Shell")
>
> Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonat e}!
> \\.\root\cimv2")
>
> Set colServiceList = objWMIService.ExecQuery ("Select * from
Win32_Service
> where Name='eEyeRmtInst'")
>
> For Each objService in colServiceList
> objService.StopService()
> objService.Delete()
> Next
>
> 'Wscript.echo "Installing Blink. Please wait..."
>
> WshShell.Run "cmd /C start /wait " & chr(34) & "Installing Blink..." &
chr
> (34) & " " & strPackagePath & "\Setup.exe /qn /Liom " & chr(34) &
> installdir & "\BlinkSetup.log" & chr(34) & " OPTIONFILE=" & chr(34) &
> strPackagePath & "\settings.txt" & chr(34), 0, true
>
> 'Enable debugging for Blink components (do so only if instructed by the
> Support Department)
>
> '
> 'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","Blinksvc ",2
> 'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","Blink",2
> 'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","Blinkrm" ,2
> 'oReg.SetDWORDValue HKEY_LOCAL_MACHINE,"SOFTWARE\eEye\Blink","cpupdate ",2
>
> ' Start the eEye Remote Install Service to finalize the deployment
> Set colServiceList = objWMIService.ExecQuery ("Select * from
Win32_Service
> where Name='eEyeRmtInst'")
>
> For Each objService in colServiceList
> errReturn = objService.StartService()
> WScript.Sleep(30000)
> Next
> _________________________________________________
>
Never mind found the problem. For some reason it was not searching the
path, had to put the path to the setting.txt file in the script explicitly. -
hello every one
i'm contacting you today cause on my domain i'm trying roll out some login scripts but thy don't seem to run even when following this tutorial
https://technet.microsoft.com/en-us/library/cc770908.aspx
here are copies of the login script that i try to run
this is what rns when the computer starts up or logs in
robocopy \\serveur\MDL\MDL\ D:\MDL\ /XO /MIR
and this is what run when the computer shuts down or logs off
robocopy D:\MDL\ \\serveur\MDL\MDL\ /XO /MIR
and then on another group of computers i have this script that run a the computers startup or login
::kill explorer
Taskkill /IM explorer.exe /F
::set to server time ?
::net time \\server /set /yes
::copy background
robocopy \\serveur\Background\ C:\background\ /XO /MIR
:: Add the required values to the registry, if these people are using a System Wallpaper.
::If they have always modified their wallpapers, the following lines are not necessary. "They have no habit of hurting themselves, constantly"
REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "C:\background\pre-background.png"
:: Modify the following line in the last number to 0 if you want to center the bitmap on the desktop.
::Change the last number in the following line to 2 if you wish to extend the bitmap vertically and horizontally to fit on your desktop.
REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 2
::copy games
robocopy \\serveur\Games\Riot_Games\ C:\Games\Riot_Games /XO /MIR
robocopy \\serveur\Games\World_of_Warplanes\ C:\Games\World_of_Warplanes\ /XO /MIR
robocopy \\serveur\Games\World_of_Tanks\ C:\Games\World_of_Tanks\ /XO /MIR
robocopy \\serveur\Games\Dofus2\ C:\Games\Dofus2\ /XO /MIR
robocopy \\serveur\Games\Hi-Rez_Studios\ C:\Games\Hi-Rez_Studios\ /XO /MIR
::launch cyberlux client
start C:\Windows\
the thing is that none of the scripts will i've tried adding a pause to double check that but it didn't even show up
when i mannually run them they run fine they do they copy everything that there ment to
i would like to able add the login scripts useing the gpo so i can control them easier
any help would be very much appreciated
and if you need any more info please just askIf the script runs manually this shouldnt be an issue
you have probably set the GPO up incorrectly for that see this
http://www.petri.com/setting-up-logon-script-through-gpo-windows-server-2008.htm
How and where did you link the created GPO? does gpresult show an applied gpo? -
Script won't run in firefox but does in IE, chrome and safari
i have a landing page with a web form script, www.wholewoman.com/newpages/landing/helpforcystocele.html. the script does not show up in firefox. further, none of our videos (served from kaltura (CDN) show up in firefox. nor does the registration script for our drupal forum. the good news is there are a lot of firefox users in the world. the bad news is that none of them can opt into my list, watch my videos or register for my forum. help!
As posted already, your problem has nothing to do with CSP, but with blocking active mixed content.
You can see that there is a shield icon on the left end of the location bar before the "Site Identity Button" (globe/padlock) on the location bar indicating that mixed content is blocked.
*https://support.mozilla.org/kb/how-does-content-isnt-secure-affect-my-safety
*https://developer.mozilla.org/Security/MixedContent
This extension can allow such active mixed content by toggling the security.mixed_content.block_active_content pref.<br />
Note that this is a pref that works globally
*https://addons.mozilla.org/firefox/addon/toggle-mixed-active-content/ -
Imac (Flat Panel) won't let me reboot from anything but hard drive! HELP !!
I was given an iMac flatpanel. Trying to erase hard drive and reinstall OS 10.2. The computer will not let me reboot from ANY cd or dvd. Tried everything, including an external firewire dvd-rom, and putting my macbook pro in target mode. (the message is that the imac doesn't recognize the HD and wants to initialize it!) I've zapped the PRAM, started in safe mode, I'M EXHAUSTED! Any idea how I can reinitialize the HD and start over?
SteveSquigles wrote:
I had the same problem when I first had a MacBook, some company here in the UK wanted to charge £140 for collecting it resetting the firmware password and returning the MacBook to me. Some one sent me the instructions you see above, it worked and saved me a few ££.
Care to name and shame them?
I like to know who to avoid and who not to recommend.
mrtotes
Maybe you are looking for
-
MSI K7N2 Delta-ILSR Noisy Northbridge fan
Hi I'm having a problem with the nforce chipset fan on my K7N2 Delta-ILSR. It makes a horrible wailing sound when cold booting and is only running at about 2500rpm instead of 4000rpm. It does this usually for about 30 seconds then runs normally. Does
-
Disk Utility Unable to Repair External FireWire Hard Disk
Hello all. This is the External FireWire Hard Disk that has been giving me problems for days, it is a Backup/Clone Disk of my sis's Mac mini Core Duo, and may explain why it was so hard and took so much pain to copy some of the data out, at times it
-
Function to get Family Member Details and Addresses
Family Member details are stored in pa0021 and their addresses are stored in pa0106. I can find lots of BAPI's/Functions to read and create new Family Member details, but nothing that deals with both their Details and Address Information (pa0021 and
-
What replication methods are available in Oracle 10g Standard Edition?
Hi All, Our customer wants to have two identical servers at two different sites (Virginia and Utah). Server in Virginia will be the primary and the other one will be Standby. Application will run on the primary database and they would like to be able
-
Hi to all, we've two internal WLC which belong to the same MG (the default one), and one DMZ WLC which belongs to another MG. All are running OS 4.2.61 After configuring Mobility Group using the "edit all" inserting the WLC IP address and MAC of the