Modify a Script To Not Run at Shutdown?
Using the archstats script listed below, how could I alter the script so that it only runs the $ARCHSTATS_CMD command during boot but not when shutting down? I see that is handled by the 'stop)' section, but I am unclear how to properly remove this portion and still have the script operate as desired.
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
# NOTE: If you use an alternate location for your archstats.conf file,
# make sure to set that accordingly with the -c switch
# Set this to the 'archstats' client path
ARCHSTATS_CMD='/usr/bin/archstats'
case "$1" in
start)
stat_busy "Updating ArchStats"
if [ -x "$ARCHSTATS_CMD" ]; then
"$ARCHSTATS_CMD" -u
stat_done
else
stat_fail
fi
stop)
stat_busy "Updating ArchStats"
if [ -x "$ARCHSTATS_CMD" ]; then
"$ARCHSTATS_CMD" -u
stat_done
else
stat_fail
fi
echo "usage: $0 {start|stop}"
esac
exit 0
I would guess this, just remark out the "stop" code. Just add "#" to the start of a line to remark it out, so it does not run.
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
# NOTE: If you use an alternate location for your archstats.conf file,
# make sure to set that accordingly with the -c switch
# Set this to the 'archstats' client path
ARCHSTATS_CMD='/usr/bin/archstats'
case "$1" in
start)
stat_busy "Updating ArchStats"
if [ -x "$ARCHSTATS_CMD" ]; then
"$ARCHSTATS_CMD" -u
stat_done
else
stat_fail
fi
stop)
# stat_busy "Updating ArchStats"
# if [ -x "$ARCHSTATS_CMD" ]; then
# "$ARCHSTATS_CMD" -u
# stat_done
# else
# stat_fail
# fi
echo "usage: $0 {start|stop}"
esac
exit 0
Similar Messages
-
Linux Sh script is not running in forms10g(10.1.2)
Hi
The Oracle Forms server is installed in Linux.
I have placed the below host commands in forms10g. The Host command is running but shell sh script is not executed.
BEGIN
:GLOBAL.DIR_PATH:='/forms/shell_files/';
Host(:GLOBAL.DIR_PATH||'my_shell.sh'||' > '||:GLOBAL.DIR_PATH||'my_shell.log');
END;
I tried to execute the sh file and redirect the output to log file.
But log file has been created with blank file. but shell sh script is not executed.
I have given the full path of the shell sh file and given the full rights for the sh file.
Is there any access permission to be set for sh file execution?
Please help.Thank you in advance.OS: UNIX Solaries, Oracle Application Server 10g
To run shell script from Oracle Forms, I used the following host('/bin/bash /u01/compile.sh') and it works well
Now, I need to run unix command something like
host('mv form1.fmx FORM1.FMX') but it's not working
I tried to append the command mv form1.fmx FORM1.FMX' to the compile.sh shell script but also it's not working although the rest lines of the shell script is running well -
Root.sh script is not running successfully in RAC
Hi
when i run root.sh script for RAC Grid installation. throws below error in screen.
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
Disk Group ASM already exists. Cannot be created again
Configuration of ASM failed, see logs for details
Did not succssfully configure and start ASM
CRS-2500: Cannot stop resource 'ora.crsd' as it is not running
CRS-4000: Command Stop failed, or completed with errors.
Command return code of 1 (256) from command: /u01/app/grid/11.2.0/grid_1/bin/crsctl stop resource ora.crsd -init
Stop of resource "ora.crsd -init" failed
Failed to stop CRSD
CRS-2500: Cannot stop resource 'ora.asm' as it is not running
CRS-4000: Command Stop failed, or completed with errors.
Command return code of 1 (256) from command: /u01/app/grid/11.2.0/grid_1/bin/crsctl stop resource ora.asm -init
Stop of resource "ora.asm -init" failed
Failed to stop ASM
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac1'
CRS-2677: Stop of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'
CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded
What need to be done. please helpIN case it matters, which version?
I agree with Hemant K Chitale on both of his points. The disk group has already been created, and one probably shouldn't name it "ASM". Give it a more meaningful name.
"Configuration of ASM failed, see logs for details"
Did you look in the log files? Anything of interest in there?
Cheers,
Brian -
This SQL script is not running properly
The following is SQL script which I want to run.When I am running individual statements , all the statements are working. But When I am running script as a whole, its not working.
what might be the problem with following script
--the following table is created with list of Singapore Holidays
set define off
drop table exclude_date;
create table exclude_date as
select 2007 as year#, 1 month#, 1 day#, 'New Year Day' as name# from dual union all
select 2007 as year#, 1 month#, 2 day#, 'New Year Day' as name# from dual union all
select 2007 as year#, 2 month#, 18 day#, 'Chinese New Year' as name# from dual union all
select 2007 as year#, 2 month#, 19 day#, 'Chinese New Year' as name# from dual union all
select 2007 as year#, 2 month#, 20 day#, 'Chinese New Year' as name# from dual union all
select 2007 as year#, 4 month#, 6 day#, 'Good Friday' as name# from dual union all
select 2007 as year#, 5 month#, 1 day#, 'Labour Day' as name# from dual union all
select 2007 as year#, 5 month#, 31 day#, 'Vesak Day' as name# from dual union all
select 2007 as year#, 8 month#, 9 day#, 'National Day' as name# from dual union all
select 2007 as year#, 10 month#, 13 day#, 'Hari Raya Puasa' as name# from dual union all
select 2007 as year#, 11 month#, 8 day#, 'Deepavali' as name# from dual union all
select 2007 as year#, 12 month#, 20 day#, 'Hari Raya Hji' as name# from dual union all
select 2007 as year#, 12 month#, 25 day#, 'Christmas Day' as name# from dual ;
show errors;
drop type DateList;
--This statement creates type of DateList for the function all_date_list which return DateList
create or replace type DateList as table of date;
show errors;
--the following function returns list of working dates between two dates excluding SAT , SUN and Singapore Holidays
drop function all_date_list;
create or replace function all_date_list(p_start date, p_end date)
RETURN DateList
PIPELINED
IS
curdate date:=p_start;
exclude number;
BEGIN
WHILE curdate <= p_end
LOOP
BEGIN
select 1
into exclude
from exclude_date
where to_date(year#||lpad(month#,2,0)||lpad(day#,2,0),'YYYYMMDD')=trunc(curdate) --excluding unworked days
or mod(to_char(curdate,'j'),7) in (5,6); --excluding week-end
EXCEPTION WHEN NO_DATA_FOUND THEN PIPE ROW( curdate );
WHEN OTHERS THEN NULL;
END;
curdate:=curdate+1;
END LOOP;
RETURN;
END;
show errors;
--the following function returns number of working days between two dates excluding SAT , SUN and Singapore Holidays
drop function WorkingDays;
CREATE OR REPLACE function WorkingDays(msgSentDate Date) return NUMBER is
noOfWokingDays number;
begin
select count(*) into noOfWokingDays from table(all_date_list(msgSentDate,sysdate));
return noOfWokingDays;
end;
show errors;--the following table is created with list of Singapore Holidays
set define off
drop table exclude_date;
create table exclude_date as
select 2007 as year#, 1 month#, 1 day#, 'New Year Day' as name# from dual union all
select 2007 as year#, 1 month#, 2 day#, 'New Year Day' as name# from dual union all
select 2007 as year#, 2 month#, 18 day#, 'Chinese New Year' as name# from dual union all
select 2007 as year#, 2 month#, 19 day#, 'Chinese New Year' as name# from dual union all
select 2007 as year#, 2 month#, 20 day#, 'Chinese New Year' as name# from dual union all
select 2007 as year#, 4 month#, 6 day#, 'Good Friday' as name# from dual union all
select 2007 as year#, 5 month#, 1 day#, 'Labour Day' as name# from dual union all
select 2007 as year#, 5 month#, 31 day#, 'Vesak Day' as name# from dual union all
select 2007 as year#, 8 month#, 9 day#, 'National Day' as name# from dual union all
select 2007 as year#, 10 month#, 13 day#, 'Hari Raya Puasa' as name# from dual union all
select 2007 as year#, 11 month#, 8 day#, 'Deepavali' as name# from dual union all
select 2007 as year#, 12 month#, 20 day#, 'Hari Raya Hji' as name# from dual union all
select 2007 as year#, 12 month#, 25 day#, 'Christmas Day' as name# from dual ;
drop type DateList;
create or replace type DateList as table of date;
--the following function returns list of working dates between two dates excluding SAT , SUN and Singapore Holidays
drop function all_date_list;
create or replace function all_date_list(p_start date, p_end date)
RETURN DateList
PIPELINED
IS
curdate date:=p_start;
exclude number;
BEGIN
WHILE curdate <= p_end
LOOP
BEGIN
select 1
into exclude
from exclude_date
where to_date(year#||lpad(month#,2,0)||lpad(day#,2,0),'YYYYMMDD')=trunc(curdate) --excluding unworked days
or mod(to_char(curdate,'j'),7) in (5,6); --excluding week-end
EXCEPTION WHEN NO_DATA_FOUND THEN PIPE ROW( curdate );
WHEN OTHERS THEN NULL;
END;
curdate:=curdate+1;
END LOOP;
RETURN;
END;
show errors;
--the following function returns number of working days between two dates excluding SAT , SUN and Singapore Holidays
drop function WorkingDays;
CREATE OR REPLACE function WorkingDays(msgSentDate Date) return NUMBER is
noOfWokingDays number;
begin
select count(*) into noOfWokingDays from table(all_date_list(msgSentDate,sysdate));
return noOfWokingDays;
end;
show errors;
commit;
The above script is not working properly.Last two fuctions are not executing.
What might be the error? -
Shell scripts do not run anymore; problems after 10.7.3?
Hello all,
latley all my shell scripts broke and they do not run anymore. I suspect 10.7.3 to broke all the scripts. My scripts used to work fine and I had no issues. I guess it started after updateing to 10.7.3 and now I got a error as following:
-bash: ./CamSendEmail.sh: /bin/bash: bad interpreter: Operation not permitted
This is usually as the first line in my script is and ever was #!/bin/bash. If I do just remove the line, I am getting an error as following:
-bash: ./CamSendEmail.sh: Operation not permitted
Please note, that the scripts name is "CamSendEmail.sh" and that this is just an example. All my scripts are affected. At this point I need to say again, that the scripts work basicly fine till a short time ago.
Of cause, the user who runs the scripts has the permission to run the script. It is a standard user and it ever was. I did not touch the scripts nor their permissions. The only change I am aware of is updating to 10.7.3.
I did a test and cut'n'pasted the entire content of a not running script into a blank new file. The new file did work! The only differences between those 2 files are now some file system permission, I do actually not know yet:
-rwxr--r--+ 1 james staff 265 Feb 13 19:50 CamSendEmail.sh
-rwxr--r--@ 1 james staff 265 Feb 13 19:40 CamSendEmail.sh.orig
Note, that *orig does not work, while *sh does. I could not find an information about the meaning of a + and the @ in the output of ls -al. But whatever it is, I wonder how this can be influenced by 10.7.3 ...(?) Can anyone shade a little light on that?
I will keep on searching for information about + an @, but since this is somehow urgent to me, I decided to first start this posting ...
Thx for your help on that!I did some research and learned the the + and the @ are indicating extented attributes which can be managed using the xattr command. I played a little bit with it, and found out that my scripts had the following extended attribute for some reason
com.apple.quarantine
I deleted it using xattr -d com.apple.quarantine script.sh and the script worked again. This is one point.
What still drives me nuts, is the fact that this attribute was set without any interaction of me. Does anyone know if Apple has build in some new security stuff with 10.7.3? Or is this just accidential and some other action, which I am not aware of, has changed or added the extended attributes?
I realy would like to have that clarified. My scripts are part of an automated process and it took some days till I noted that this process does not work anymore, which resulted in data loss. I was happy that those days data was not very important. Now I am afraid that this may happen again any time :-(
Thx again! -
Just loaded lion software. Now java scripts will not run. What can I do to fix this
Just loaded my MacBook Pro with Lion 10.7.1 software. Trying to add printer and the script does not work for loading the drivers and software for that printer. It goes through the script then says it successfully loaded but asked me no questions about the load during the process. It appears that the Java script passes right through. Is there anything I can load to fix this problem. I also tried to use my internet stick which loads software to select and use this stick. It does not work either. What can I do to fix this???
Hi there,
You may find the troubleshooting steps in the article below helpful.
iOS: Troubleshooting Messages
http://support.apple.com/kb/ts2755
-Griff W. -
Powershell Startup script is not running on client machine
Hi,
We have a OU which has some computer accounts. We have a powershell script which sets the value of HKLM\system\currentcontrolset\services\usbstor - start - 4. I created a GPO in which this script is set in startup mode. I have applied
this GPO object to the OU. In parameter tab i have kept it blank. But this scrpit doesn't run all on any of the machines. I have checked the script running manually and it works.
I have gone through the microsoft blog's and have performed in that way also but no output.
1. What more setting i need to do on GPO object ?
2. Or where should keep the script in server sysvol folder ?
ThanksHello Amit,
A couple of things to check:
Do you put the Powershell scripts in appropriate tab when you are trying to configure your script?
I believe it does not complete successfully because Powershell and related services is not started yet in start up process.
You can run it successfully because you are logged on and all the related services are started.
Since you are trying to apply GPO to windows 7 and higher operating systems, you can apply registry settings using GPO preferences. More info:
Configure a Registry Item
Regards.
Mahdi Tehrani |
|
www.mahditehrani.ir
Please click on Propose As Answer or to mark this post as
and helpful for other people.
This posting is provided AS-IS with no warranties, and confers no rights.
How to query members of 'Local Administrators' group in all computers? -
Windows 2008 R2 64 bit vbs script is not run in Task Scheduler
Good day!
There is a script that at a certain point opens excel, says there is something, saves and closes.
Does not work in 2008 scheduler mode to perform regardless of the user's registration (ie, the script should run when the PC no one registered), if you run your hands or in the Run mode only for the registered user oki-all
Here is a sample text of the script:
checkosx86x64args()
Dim conn
Set conn = CreateObject("ADODB.Connection")
conn.ConnectionString = "Provider=MSDAORA.1;Password=пароль;User ID=логин;Data Source=база;Persist Security Info=True"
conn.Open
Set Recordset = CreateObject("ADODB.Recordset")
Recordset.CursorLocation = 3
Recordset.Open "текст запроса", conn, 2, 3, 1
If Recordset.RecordCount = 0 Then
Recordset.Close: Call Pochta
else
Incas = Recordset.GetRows
Recordset.Close
End if
Set objExcel = CreateObject("Excel.Application")
Set objWorkBook = objExcel.Workbooks.Open("*.xlsx")
DateNow = Left(Now(),10)
DateTimeNow1 = CDate(DateNow + " " + "14:00:00")
DateTimeNow2 = CDate(DateNow + " " + "21:00:00")
'DateTimeNow3 = CDate(DateNow + " " + "23:30:00")
'objExcel.Range("A1:F1").Merge - объединение ячеек
objExcel.Range("A1:F1") = Empty ' очистка объединенных ячеек
If Now < DateTimeNow1 Then
objExcel.Range("A1:F1").Value = "Текст " + DateNow + " с 05:00:00 до 06:45:00"
ElseIf Now < DateTimeNow2 Then
objExcel.Range("A1:F1").Value = "Текст " + DateNow + " с 14:00:00 до 16:30:00"
Else objExcel.Range("A1:F1").Value = "Текст " + DateNow + " с 21:00:00 до 23:30:00"
End If
For j = 3 To 100 Step 1
objExcel.Cells(j, 1).Clear
objExcel.Cells(j, 2).Clear
objExcel.Cells(j, 3).Clear
objExcel.Cells(j, 4).Clear
objExcel.Cells(j, 5).Clear
objExcel.Cells(j, 6).Clear
Next
intRow = 3
i = 0
For f = 0 To UBound(Incas, 2)
AZS = Incas(0, f)
nTo = Incas(1, f)
Term = Incas(2, f)
DataIn = Incas(3, f)
Addres = Incas(4, f)
Phone = Incas(5, f)
objExcel.Cells(intRow,1).Value = AZS
objExcel.Cells(intRow,2).Value = nTo
objExcel.Cells(intRow,3).Value = Term
objExcel.Cells(intRow,4).Value = DataIn
objExcel.Cells(intRow,5).Value = Addres
objExcel.Cells(intRow,6).Value = Phone
intRow = intRow + 1
Next
'For k = 0 To 6
' objExcel.Columns(k + 1).AutoFit
'Next
objExcel.DisplayAlerts = False
objExcel.ActiveWorkbook.SaveAs("*.xlsx")
objExcel.DisplayAlerts = True
objexcel.Quit
conn.Close
Wscript.Sleep(180)
Call OtpravkaPochti
Recordset = ""
conn.Close
'------------------------Процедура отправки почты если есть запись в таблице-----------------------------------------
Sub OtpravkaPochti()
Const EmailFrom = "почта"
Const EmailPassword = "пароль"
Const strSmtpServer = "сервер"
Const EmailTo = "адресаты"
' Кому будет отправляться e-mail
Const AttFile = "*.xlsx" 'Указываем путь к файлу, который необходимо вложить в сообщение
Set objEmail = CreateObject("CDO.Message")
objEmail.From = EmailFrom
objEmail.To = EmailTo
objEmail.Subject = "текст"
objEmail.Textbody = "текст"
objEmail.AddAttachment(AttFile)
objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = EmailFrom
objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = EmailPassword
objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSmtpServer
objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/languagecode") = 1049
objEmail.BodyPart.CharSet = "windows-1251"
objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/usemessageresponsetext") = true
objEmail.Configuration.Fields.Update
objEmail.Send
WScript.Quit
End Sub
'------------------------Процедура отправки почты если нет записей в таблице-----------------------------------------
Sub Pochta()
End Sub
sub checkosx86x64args()
' если скрипт запущен из %windir%\system32\ под win x64 - перезапуск из %windir%\syswow64\
dim cmdln, arg
with createobject("WScript.Shell")
if replace(lcase(wscript.path), lcase(.expandenvironmentstrings("%windir%\")), "") = "system32" then
cmdln = replace(lcase(wscript.fullname), "system32", "syswow64")
if createobject("scripting.filesystemobject").fileexists(cmdln) then
cmdln = cmdln & " """ & wscript.scriptfullname & """"
for each arg in wscript.arguments
cmdln = cmdln & " """ & arg & """"
next
.run cmdln
wscript.quit
end if
end if
end with
end sub
Please help me with a problem.
Please help me with a
problem.Thank you very much Jesper for sharing this. My program also calls Excel.application in
the script and it was never working after we moved the script to Win 2008 R2 server. After creating these 2 folders, it started working.
C:\Windows\SYSWOW64\config\systemprofile\desktop\
C:\Windows\System32\config\systemprofile\desktop\ -
Shell script intermittently not running [AwesomeWM]
Hi all!
I'm trying to get my Logitech G13 running on login but intermittently having issues with it. Most of the time, I'd say maybe 80%, it works however sometimes I believe the shell script to apply permissions does not properly execute.
I created shell script g13permission inside /home/milk/startup/ then added /home/milk/startup/ to my ~/.bash_profile
the script is simply:
#! /bin/bash
#Set permissions for G13
sudo chmod a+rw /dev/uinput
I then ran
chmod 755 g13permission
from inside the startup folder
I'm using AwesomeWM, so to handle it on boot I added the following to my rc.lua:
awful.util.spawn_with_shell("g13permission")
awful.util.spawn_with_shell("g13d")
awful.util.spawn_with_shell("cat default.bind > /tmp/g13-0")
So like I said, maybe 80% of the time when I log in it properly executes everything and my G13 shows the linux inside logo and all buttons work
but then the other 20% of the time my G13 LCD will change colors but not show the logo or respond to button presses, which is also what happens if I, rather than auto starting with awesome, run everything through terminal without first chmod'ing /dev/uinput
Any help would be appreciated
Last edited by milkman (2015-04-28 17:30:46)Thanks for the reply, I've updated my OP with proper code tags.
The g13 is a gaming keyboard https://wiki.archlinux.org/index.php/Logitech_G13
I'm attempting to use the 'g13' outlined section
I will look into udev rules, thanks again. -
WMI scripts are not running on Windows 8.1
Hi, I am using the below JavaScript to get the client IP and mac address in my application:
function getIP() {
var wmi = GetObject("winmgmts:{impersonationLevel=impersonate}");
e = new Enumerator(wmi.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True"));
for (; !e.atEnd(); e.moveNext()) {
var s = e.item();
alert('Mac: ' + s.MACAddress + ' IP: ' + s.IPAddress(0));
This java script is working fine on Windows XP/7/2008R2, but not on Windows 8.1.
On Windows 8.1, the below script throws error:
var wmi = GetObject("winmgmts:{impersonationLevel=impersonate}");
Line: 10
Error:'GetObject' is undefined
I am using Lenovo ThinkPad to test this script, below are the system details:
Windows Edition: Windows 8.1
Processor: Intel(R) Atom ™ CPU Z2760 @ 1.80 GHZ
Installed Memory (RAM): 2GB
System Type: 32-bit Operating System, x86-based processor
Pen and Touch: Full Windows Touch Support with 5 touch points
Production ID: 00179-60394-05138-AAOEM
About Internet Explorer:
Version: 11.0.9600.17105
Update Versions: 11.0.7 (KB2964358)
Product ID: 00150-20000-00003-AA459
Please help me it is really very urgent.Hi,
I am afraid GetObject function in JavaScript is not supported in IE9 or later, see:
GetObject Function (JavaScript):(This function is not supported in Internet Explorer 9 (standards mode) or later.)
And regarding the scripts modification, we'd better seek help in the scripting guys forum for a better assistance:
The offical scripting guys forum!
http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
Best regards
Michael Shao
TechNet Community Support -
The entire script did not run - does this mean I have problems?
I have never used Foxfire before and have no idea whether or not everything I need was installed. A meeting I have on Wednesday requires this to be working, and I do not know how to begin.
See:
iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows
The iPod is also a mobile device. -
UTLRP script is not running properly
database version 8.1.7.4.1
windows 2000 server
UTLRP script is hanging up .
What can be the reasons?my problem has been solved .
Actually there was inconsistency in archive mode operation.
log_mode was archivelog (v$database view)
sql> archive log list
Database log mode Archive Mode
Automatic archival Disabled
Archive destination d:\oracle\ora81\RDBMS
Oldest online log sequence 586
Current log sequence 588
I want development database in noarchive mode so I have altered database for
noarchivelog.
Now utlrp has completed it's operation.
Anyway thanks Satish
Cheers
Arun -
WMI Scripts not Running Across VPN
Hi
I have a strange problem where i have 2 sites connected using a VPN on 2 CISCO877. But WMI scripts are not running across the link. if i pull these out an replace them with a Draytek, the scripts run fine.
Broad Lane LAN ----- Cisco 877 ========= Internet & VPN Tunnel ============== Cisco 877 ---- Southam LAN1.0.39.0/8 1.0.39.253 192.168.55.1 192.168.55.0/24 The server at Broad Lane is GIMILI (1.0.39.109) and at Southam is FRODO (192.168.55.4). The following will not work through the tunnel from Broad Lane LAN. Set objWMIService = GetObject("winmgmts:\\192.168.55.4\root\cimv2") if err.number=0 then serverexist=true else serverexist=falsemsgbox(server.exist)
Is is possible for the CISCO877 to block WMI traffic?
Any suggestions please?
Rgds
PhilPhil,
Thank you for your question. This community is for Cisco Small Business products and your question is in reference to a Cisco Elite/Classic product. Please post your question in the Cisco NetPro forums located here: http://forums.cisco.com/eforum/servlet/NetProf?page=main This forum has subject matter experts on Cisco Elite/Classic products that may be able to answer your question.
Bill -
GPO with a startup script is not working.
I have a GPO that I have added a ".bat" script to the "Computer Configuration\Windows Settings\scripts\startup/shutdown" section. The batch file is located in the netlogon folder. This script was part of another Old GPO
that I want to consolidate into this new GPO. So I am taking the exact settings from the old GPO and applying it to the new GPO.
The script does not run at startup and when I go into Group Policy Management, highlight the GPO then on the right pane click the settings tab it doesn't display the startup script as being set. It's just not there. If I select edit and go to the
"Computer Configuration\Windows Settings\scripts\startup/shutdown\startup" section the .bat script is present though.
Also if I do a gpresult it also shows that it isn't running the script but all other settings in the GPO are being applied.
This GPO has the User Config. side disabled
Why isn't the GPO applying the script or even acknowledging that it is present in the settings tab?Hi,
I could not see any report in the above link. I would like to know that did you follow the below path:
http://technet.microsoft.com/en-us/magazine/dd630947.aspx
In addition, logon script could only be applied to users. If want to apply to computers, we should use startup script.
Regards,
Yan Li
If you have any feedback on our support, please click
here
Cataleya Li
TechNet Community Support -
Set-tmp-permission is not running in my Solaris 10 Netra CP3060 blade serve
Hi All,
In my Solaris 10 - Netra CP3060, the following particular script is not running:
lrc:/etc/rc2_d/S00set-tmp-permissions
lrc:/etc/rc2_d/S07set-tmp-permissions
Above script is to set the default permission of /tmp & /var/tmp while rebooting if it found any inconsistencies. I changed the file permission of /tmp and rebooted my server. As the above scripts are not running, it shouldn't change the file permission to default. But the file permission changed after reboot.
Please let me know is there any other service running related to this in my server. Was this script incorporated in SMF facility, if so whats that service name?
Thanks,
Ram.OS: UNIX Solaries, Oracle Application Server 10g
To run shell script from Oracle Forms, I used the following host('/bin/bash /u01/compile.sh') and it works well
Now, I need to run unix command something like
host('mv form1.fmx FORM1.FMX') but it's not working
I tried to append the command mv form1.fmx FORM1.FMX' to the compile.sh shell script but also it's not working although the rest lines of the shell script is running well
Maybe you are looking for
-
SAP Table for Custom variable and values?
Hi folks. I am looking for a SAP standard table which I recall existing. This table was designed by SAP to store a variable name and value(s), so that no programmer would ever hard-code values into their reports. Instead, the programmer would create
-
I can't open a new tab by clicking on a tab - I think some dodgy software has stopped it
I was trying out a pdf converter - Babylon. It did 2 things to Firefox: 1. It created this as my home page (I can fix this) http://search.babylon.com/home?AF=10588 2. I can no longer click and launch a new tab- in Tools Options Tabs I have all 5 boxe
-
DBMS_OUTPUT.ENABLE(null) - does this set the serveroutput size to unlimited
Hi, I am in 10gR2. But my SQL plus client is still with 9i. Hence i am unable to use the 10gR2 feature of setting the serveroutput to unlimited size. If i issue SET SERVEROUTPUT ON SIZE UNLIMITED I am getting this error. Usage: SET SERVEROUTPUT { ON
-
Problem using RescaleOp to brighten image
Hi, I'm trying to use java.awt.image.RescaleOp to brighten or darken an image. My code: (Using java.awt.image.BufferedImage, java.awt.RenderingHints) protected static Image createBrightImage(Graphics g, BufferedImage bi) float scaleFac
-
Can I get back an email I was composing after losing power and the computer shut down?
While composing a long, complicated email, the warning came on that I was about to lose battery power. By the time I plugged my computer in to the electrical outlet, it had already shut down. I powered it up and checked my email drafts folder, but th