New to bash scripting; making script to change laptop CPU governor
I've got an old laptop and I like to be able to change the governor between performance and ondemand depending on whether or not I've got the laptop plugged in. I'd really like to be able to do this from a shortcut on the desktop, so I decided to try making a bash script that used Zenity dialogs to accomplish this.
I think it turned out pretty much how I'd like, however the error handling on getting the root password authenticated is pretty broken. I'm not sure how exactly I should go about it.. I think that the long timeout that occurs when you enter a wrong password for su is causing problems. Is there a better way of doing this? I don't use sudo, and I'd really prefer to avoid it and stick to using su if at all possible.
#!/bin/bash
#This script will supply a Zenity dialog with the option to change the laptop's governor.
#It will use a Zenity dialog to acquire the root password from user for autorization to change the governor.
#Set up some variables we will use.
optionPerformance="FALSE"
optionOndemand="FALSE"
#Read the current state of the governor.
currentGovernor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
#Change the variables we previously set up to reflect current state of governor. This will be used to determine which option is pre-selected in the Zenity dialog we will create.
if [ $currentGovernor = 'performance' ]
then optionPerformance="TRUE"
fi
if [ $currentGovernor = 'ondemand' ]
then opitonOndemand="TRUE"
fi
#Set up Zenity dialog which allows user to select the governor they want active. The currently active governor will be selected by default.
#User's input will go to the wantedGovernor variable for future use.
wantedGovernor=$(zenity --list --text "Select which governor you want to make active:" --radiolist --column "" --column "Options" $optionPerformance "performance" $optionOndemand "ondemand")
#Check to see if user clicked Cancel button.
if [ $? = 1 ]
then exit 0
fi
#Did user select the already active profile? If so, simply report that and exit.
if [ $wantedGovernor = $currentGovernor ]
then
newGovernor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
zenity --info --text "Governor is already set to $newGovernor.\n\nNo changes were made."
exit 0
fi
#Now that we know what the user wants, let's do it.
#We will use cpupower to change the governor. This will require root privileges, so we will use Zenity to get the root password from user and pipe it into su. (Is this the best way?)
zenity --title "Password for root:" --password | su -c "cpupower frequency-set -g $wantedGovernor"
#Check to see if user clicked Cancel button.
if [ ${PIPESTATUS[0]} = 1 ]
then exit 0
fi
#Check to see if user entered incorrect root password.
if [ ${PIPESTATUS[1]} = 1 ]
then
zenity --error --text "Incorrect root password.";
exit 1
fi
#Now that we've made the change, let's check the current state of the governor again so that we can report it to the user and they can verify success.
newGovernor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
zenity --info --text "Governor is now set to $newGovernor."
Last edited by gilmoreja (2015-01-26 21:49:19)
Thanks for the advice, Awebb. I looked into gksu but I didn't like how it offered to save the root password in gnome-keyring. I found an alternative, ktsuss, and decided to go with that instead.
I'll post the finished script here, for anyone who is ever interested in such a thing:
#!/bin/bash
#This script will supply a Zenity dialog with the option to change the laptop's governor.
#It will use a Zenity dialog to acquire the root password from user for autorization to change the governor.
#Set up some variables we will use.
optionPerformance="FALSE"
optionOndemand="FALSE"
#Read the current state of the governor.
currentGovernor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
#Change the variables we previously set up to reflect current state of governor. This will be used to determine which option is pre-selected in the Zenity dialog we will create.
if [ $currentGovernor = 'performance' ]
then
optionPerformance="TRUE"
fi
if [ $currentGovernor = 'ondemand' ]
then optionOndemand="TRUE"
fi
#Set up Zenity dialog which allows user to select the governor they want active. The currently active governor will be selected by default.
#User's input will go to the wantedGovernor variable for future use.
wantedGovernor=$(zenity --list --text "Select which governor you want to make active:" --radiolist --column "" --column "Options" $optionPerformance "performance" $optionOndemand "ondemand")
#Check to see if user clicked Cancel button.
if [ $? = 1 ]
then exit 0
fi
#Did user select the already active profile? If so, simply report that and exit.
if [ $wantedGovernor = $currentGovernor ]
then
newGovernor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
zenity --info --text "Governor is already set to $newGovernor.\n\nNo changes were made."
exit 0
fi
#Now that we know what the user wants, let's do it.
#We will use cpupower to change the governor. This will require root privileges, so we will use ktsuss to get that.
ktsuss cpupower frequency-set -g $wantedGovernor
#Now that we've made the change, let's check the current state of the governor again so that we can report it to the user and they can verify success.
newGovernor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
zenity --info --text "Governor is now set to $newGovernor."
Similar Messages
-
Scripting a file name change as a data merge element.
My goal of the work being done with InDesign is to utilize the Data Merge functionality of InDesign and the, already available, ability to create a new document per record in your data source where the docuement name is changed based on data contained in the data source.
A very simple example of this would be the following:
EXAMPLE
======================
Given the following data source in excel:
First_Name
Last_Name
ResultingFileName
George
Smith
c:\A45.pdf
Mary
Lopez
c:\C99.pdf
Steve
Barns
c:\tmp\XM96TR.pdf
Along with a simple two text box InDesign documents, I would perform a standard data merge with First_Name linked to one text box and Last_Name linked to another. By setting the “Record Limits Per Document” to 1, I would end up with three different documents. By default, the documents would be named Untiltled-1, Untiltled-2 and Untitled-3.
Untitled-1 would contain George and Smith. Untitled-2 would contain Mary and Lopez and Untitled-3 would contain Steve and Barns.
At this point in time, I would run the new created script, which would do the following:
Rename Untitled-1 to A45 and/or save Untitled-1 as C:\A45.pdf
Rename Untitled-2 to C99 and/or save Untitled-2 as C:\C99.pdf
Rename Untitled-3 to XM96TR and/or save Untitled-3 as c:\tmp\XM96TR.pdf
I am open to modifying the manner in which the data merge source is created. For example, separating the path and the file name into separate columns. In addition, I am flexible in putting preset information and/or file save types into the data merge document.
Please feel free to contact me directly at [email protected]
Thanks in advance for the help.
MattHi Matt,
I think it’s better to use an XML-based approach for your task.
I’ve never scripted Data Merge process, but I don’t see a straightforward way of doing it. May be you can create the 3rd textbox on pasteboard or a non-printing layer, which will contain the file path from ‘ResultingFileName’ field, and the contents from which can be used for naming & saving the current file and exporting it to pdf-file. But this approach is so clumsy.
Instead, you’d better to keep your data in excel file, or even better Access or some other database program.
Export the data from it in XML-format.
Then import it to an InDesign file and process it by script. XML support is very powerful in InDesign: you can process your data by xml-rules. I once made a script for a newspaper, which processed data for classified ads. The script applied all formatting, changed colors for different headings and placed images.
Kasyan -
Need to add a new page in the SAP Script as last page
Hello,
I need to add a new page in the SAP Script as last page.
Currently I have three pages in the form(FIRST,NEXT,LAST). For this I created one more page END.
FIRST page next page is NEXT
NEXT page next page is NEXT
LAST page next page is LAST
END page next page is END.
I used NEW-PAGE END in the main window but it is not working and also I trired with CONTROL_FORM this also not working.
Thanks,
Ravi.Hello,
I need to add a new page in the SAP Script as last page.
Currently I have three pages in the form(FIRST,NEXT,LAST). For this I created one more page END.
FIRST page next page is NEXT
NEXT page next page is NEXT
LAST page next page is LAST
END page next page is END.
Create the text element in the main wondow of your form
/E ENDPAGE
/: NEW-PAGE END
and call the element from your print program by using write_form, where you want the END page in your print.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'ENDPAGE'
EXCEPTIONS
element = 1
window = 2.
Thanks,
Ravi. -
Hello,
Is there a script that I can change all the colors of a layer in to 1 PMS color, unite every object and than give it an offset of -0,2 mm ?the offset has to be semi-automatic, apply an Offset Path Effect (by hand), create a Graphic Style out of it (by hand), then the script can apply this graphic style to objects.
-
SPA900 - AA script saved but no change on prompts
I changed the AA scripts and saved the changes on my SPA9000. However, the Auto Attendant worked the same as the default script without any change when I called. For example, I changed the audio src to prompt2 or prompt3 and the welcome message was still prompt1 "“If you know your party’s extension, you may enter it now.” Any help will be very much appreciated.
hi! if you dial AA from one of the SPA9xx phones on the network using the Menu button (under Directory>Corporate Directory) can you at least hear the AA prompts? because if not, something is definitely wrong with the device already...reset it to factory default and make sure that you upgrade to the latest firmware... without changing the AA prompts, check first if you can hear the AA...then start again from there...
| isolate! isolate! isolate! | -
JavaScript is disabled in your browser. Please activate JavaScript from Tools>Internet Options>Security>Internet>Custom Level>Scripting>Active Scripting>Enabled.
These are the instructions for internet explorer but i can't see anything in firebox.In my Firefox 5.0 I see check-box for enabling/disabling JavaScript in the "Content" tab.
Is it checked in your Firefox and JavaScript still not working? -
Shell script for cpu governor toggling [SOLVED]
I am fairly new to shell (bash) scripting, but i thought i would at least manage an if test, though i was proven wrong :/
I have been looking at this for way to long by now, and i am positive i am just missing the obvious, though I just cannot see where im wrong (checked alot of examples of similar bash scripts)
The problem is that the code runs as if the if statement is always true (as if the `cat /sys/.../scaling_governor` is never updated). So what I think might have a say is the fact that it gathers info from /sys/... since i have never done that before
#!/bin/bash
if [ `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`="performance" ]
then
echo "conservative" >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "conservative" >/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "conservative" >/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo "conservative" >/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
echo "cpu governor: conservative"
else
echo "performance" >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "performance" >/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "performance" >/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo "performance" >/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
echo "cpu governor: performance"
fi
the code should "toggle" the governor for each core by checking 1 of them and applying it to all (I know the code probably looks sub-par, so if you can't handle it, please tell me how to improve it :P, or if there is a better solution to this whole thing altogheter)
Thanks in advance, and I will be trying to solve this in the mean time :)
Last edited by JulianNymark (2011-03-10 23:47:45)That was a good idea AdmiralSpark (and also owain ), I didn't know that I could pass -r in cpufreq-set.
I really should be more thorough in my manual reading
I don't think i will be going for a GUI selection (though that is a good idea for this).
The next (and final) step for me would be to have some sort of pop-up message display what governor i switched to. (since I bound this to a button press event it will not display in active terminal?). But I havent really started looking into that yet, and should probably make another thread for that after i fail miserably .
Thanks again for the help & suggestions. -
SAMPLE RECEIVING OPEN INTERFACE SCRIPT(ROI 이용자를 위한 SCRIPT)
제품: MFG_PO
작성날짜 : 2006-05-11
SAMPLE RECEIVING OPEN INTERFACE SCRIPT(ROI 이용자를 위한 SCRIPT)
================================================================
PURPOSE
Receiving Open Interface(ROI)를 좀더 쉽게 사용할 수 있도록 만들어진
tool이라고 할 수 있다. 이 script를 이용을 통해 user는 PO no, user id,
Org id를 입력하면 script는 PO에서 최소한의 data를 가져와 receiving
transaction을 생성하기 위해 ROI에 data를 입력한다.
Receiving Transaction Processor는 insert 된 data를 실행한다.
Explanation
Instructions:
1.Script exroi.sql을 local computer에 copy 하거나 sqlplus 환경의 text
edior에 script 내용을 cut&paste 한다.
2.사용가능한 PO no, User id, Org id를 결정한다.
3.sqlplus prompt에서 아래와 같이 입력한다.
SQL> @ezroi.sql
4.PO no, User id, Org id를 입력하라는 prompt를 볼 수 있을 것이다.
5.exroi.sql script를 관련된 PO data를 가져와 rcv_headers_interface 및
rcv_transactions_interface tables에 insert 한다.
만일 PO shipment lind이 closed, cancelled, fully received 되었다면
ROI table에 data를 insert 하지 않는다.
Note: 이 script가 data를 validate 하진 않으며,ROI API 자체 validation
이 실행될 뿐이다.
6.Script가 끝나면 Receiving Transaction Processor를 실행하여 insert 된
lines을 처리할 수 있다. Transaction Status Summary 화면을 통해 실행된
line이 pending 인지 error 상태인지 확인할 수 있다.
Notes:
1.Org_id parameter 값을 찾는법:
a) Application에 접속, Help> Diagnostics> Examine으로 이동.
Block:$Profile$, Field: ORG_ID 를 선택한다.
b) ORG_ID 값을 note 해 놓고 ORG_ID prompt시 이 값을 입력한다.
2.User_Name parameter 값을 찾는법:
a) Application에 접속, Help> Diagnostics> Examine으로 이동.
Block:$Profile$, Field: USER_NAME 를 선택한다.
b) USER_NAME 값을 note 해 놓고 USER_NAME prompt시 이 값을 입력한다.
Example
"eZROI.sql' script...
--*** eZROI ***
--*** by ***
--*** Preston D. Davenport ***
--*** Oracle Premium Applications Support ***
--*** Oracle Worldwide Global Support Services ***
--*** Date: 23-JUL-2003 - Beta release ***
--*** Date: 09-SEP-2003 - Rev A Added multi- ***
--*** shipment line capability ***
--*** Parameters: ***
--*** ORG_ID Organization ID ***
--*** USER_NAME FND User Name ***
--*** PO_NUMBER Purchase Order Number ***
--*** This script intended for a standard Purchase ***
--*** Order document to be inserted into the Oracle ***
--*** Receiving Open Interface (ROI) via the standard ***
--*** Oracle open interface api for a simple Receive ***
--*** transaction. ***
--*** Note: This script only considers open Purchase ***
--*** Orders. This script will not allow over- ***
--*** receipt, cancelled or closed PO's to be ***
--*** inserted into the ROI and received ***
CLEAR BUFFER
SET VERIFY OFF
SET LINESIZE 140
SET PAGESIZE 60
SET ARRAYSIZE 1
SET SERVEROUTPUT ON SIZE 100000
SET FEEDBACK OFF
SET ECHO OFF
DECLARE
X_USER_ID NUMBER;
X_PO_HEADER_ID NUMBER;
X_VENDOR_ID NUMBER;
X_SEGMENT1 NUMBER;
X_ORG_ID NUMBER;
X_LINE_NUM NUMBER;
BEGIN
DBMS_OUTPUT.PUT_LINE('***ezROI RCV API Insert Script***');
SELECT PO_HEADER_ID , VENDOR_ID , SEGMENT1 , ORG_ID
INTO X_PO_HEADER_ID , X_VENDOR_ID , X_SEGMENT1 , X_ORG_ID
FROM PO_HEADERS_ALL
WHERE SEGMENT1 = '&PO_NUMBER'
AND ORG_ID = &ORG_ID;
SELECT USER_ID INTO X_USER_ID
FROM FND_USER
WHERE USER_NAME = UPPER('&USER_NAME');
INSERT INTO RCV_HEADERS_INTERFACE
HEADER_INTERFACE_ID ,
GROUP_ID ,
PROCESSING_STATUS_CODE ,
RECEIPT_SOURCE_CODE ,
TRANSACTION_TYPE ,
LAST_UPDATE_DATE ,
LAST_UPDATED_BY ,
LAST_UPDATE_LOGIN ,
VENDOR_ID ,
EXPECTED_RECEIPT_DATE ,
VALIDATION_FLAG
SELECT
RCV_HEADERS_INTERFACE_S.NEXTVAL ,
RCV_INTERFACE_GROUPS_S.NEXTVAL ,
'PENDING' ,
'VENDOR' ,
'NEW' ,
SYSDATE ,
X_USER_ID ,
0 ,
X_VENDOR_ID ,
SYSDATE ,
'Y'
FROM DUAL;
DECLARE
CURSOR PO_LINE IS
SELECT PL.ITEM_ID , PL.PO_LINE_ID , PL.LINE_NUM ,
PLL.QUANTITY , PL.UNIT_MEAS_LOOKUP_CODE ,
MP.ORGANIZATION_CODE , PLL.LINE_LOCATION_ID ,
PLL.CLOSED_CODE , PLL.QUANTITY_RECEIVED ,
PLL.CANCEL_FLAG, PLL.SHIPMENT_NUM
FROM PO_LINES_ALL PL ,
PO_LINE_LOCATIONS_ALL PLL ,
MTL_PARAMETERS MP
WHERE PL.PO_HEADER_ID = X_PO_HEADER_ID
AND PL.PO_LINE_ID = PLL.PO_LINE_ID
AND PLL.SHIP_TO_ORGANIZATION_ID = MP.ORGANIZATION_ID;
BEGIN
FOR CURSOR1 IN PO_LINE LOOP
IF CURSOR1.CLOSED_CODE IN ('APPROVED','OPEN')
AND CURSOR1.QUANTITY_RECEIVED < CURSOR1.QUANTITY
AND NVL(CURSOR1.CANCEL_FLAG,'N') = 'N'
THEN
INSERT INTO RCV_TRANSACTIONS_INTERFACE
INTERFACE_TRANSACTION_ID ,
GROUP_ID ,
LAST_UPDATE_DATE ,
LAST_UPDATED_BY ,
CREATION_DATE ,
CREATED_BY ,
LAST_UPDATE_LOGIN ,
TRANSACTION_TYPE ,
TRANSACTION_DATE ,
PROCESSING_STATUS_CODE ,
PROCESSING_MODE_CODE ,
TRANSACTION_STATUS_CODE ,
PO_LINE_ID ,
ITEM_ID ,
QUANTITY ,
UNIT_OF_MEASURE ,
PO_LINE_LOCATION_ID ,
AUTO_TRANSACT_CODE ,
RECEIPT_SOURCE_CODE ,
TO_ORGANIZATION_CODE ,
SOURCE_DOCUMENT_CODE ,
DOCUMENT_NUM ,
HEADER_INTERFACE_ID ,
VALIDATION_FLAG
SELECT
RCV_TRANSACTIONS_INTERFACE_S.NEXTVAL ,
RCV_INTERFACE_GROUPS_S.CURRVAL ,
SYSDATE ,
X_USER_ID ,
SYSDATE ,
X_USER_ID ,
0 ,
'RECEIVE' ,
SYSDATE ,
'PENDING' ,
'BATCH' ,
'PENDING' ,
CURSOR1.PO_LINE_ID ,
CURSOR1.ITEM_ID ,
CURSOR1.QUANTITY ,
CURSOR1.UNIT_MEAS_LOOKUP_CODE ,
CURSOR1.LINE_LOCATION_ID ,
'RECEIVE' ,
'VENDOR' ,
CURSOR1.ORGANIZATION_CODE ,
'PO' ,
X_SEGMENT1 ,
RCV_HEADERS_INTERFACE_S.CURRVAL ,
'Y'
FROM DUAL;
DBMS_OUTPUT.PUT_LINE('PO line: '||CURSOR1.LINE_NUM||' Shipment: '||CURSOR1.SHIPMENT_NUM||' has been inserted into ROI.');
ELSE
DBMS_OUTPUT.PUT_LINE('PO line '||CURSOR1.LINE_NUM||' is either closed, cancelled, received.');
END IF;
END LOOP;
DBMS_OUTPUT.PUT_LINE('*** ezROI COMPLETE - End ***');
END;
COMMIT;
END;
SET VERIFY ON
Reference Documents
Note 245334.1I have the same problem on ESXI 5.5 for over a month now, tried the patches, tried the LTS kernel which others say results in an immediate result without patches, nothing seems to work and nobody seems to be able to offer a solution.
Did you make any progress ??
Error! Build of vmblock.ko failed for: 3.10.25-1-lts (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/open-vm-tools/2013.09.16/build/ for more information.
make[2]: *** No rule to make target '/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock/linux/inode', needed by '/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock/vmblock.o'. Stop.
Makefile:1224: recipe for target '_module_/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock' failed
make[1]: *** [_module_/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock] Error 2
make[1]: Leaving directory '/usr/src/linux-3.10.25-1-lts'
Makefile:120: recipe for target 'vmblock.ko' failed
Last edited by crankshaft (2014-01-10 11:32:32) -
Newbies can script! Script to connect to the internet with WPA.
Assuming you have wpa_supplicant set up:
#!/bin/bash
# A simple script to ease your life.
echo First, please type in the name of your wireless adapter "(normally wlan0)".
read INTERFACE
echo Please enter what DHCP client you want to use "(dhcpcd or dhclient)"
echo Not sure? Type dhcpcd.
read CLIENT
echo Putting $INTERFACE up.
sleep 1s
echo "</--------->"
sleep 1s
ip link set $INTERFACE up
echo "<//-------->"
sleep 2s
echo "<///------->"
sleep 1s
echo Getting access via WPA.
sleep 1s
echo "<////------>"
wpa_supplicant -B -Dwext -i $INTERFACE -c /etc/wpa_supplicant.conf
echo "</////----->"
sleep 2s
echo "<//////---->"
sleep 1s
echo Obtaining a address.
if [[ "$CLIENT" == "dhcpcd" ]]
then
dhcpcd $INTERFACE
else
dhclient $INTERFACE
fi
sleep 1s
echo "<///////--->"
sleep 1s
sleep 2s
echo "<////////-->"
sleep 1s
echo "</////////->"
sleep 2s
echo "<//////////>"
ifconfig $INTERFACE
sleep 1s
echo If the ping works, this means the connection is succesful!
ping -c 5 www.google.com
sleep 1s
I know there is room for improvement, but I think that's pretty good for a user that used Arch ONE week and never scripted before.
No, I didn't copy this script from other sites.
So, what can I script next?
Last edited by VOT Productions (2011-10-22 11:33:06)WPA Internet CONNECT! 1.1
It has now a ping feature after it's done, IP info, and it takes less time!
See what I meant by newbie?
By the way, it still does time a bit of time. The reason is because I want these extra few seconds for it to connect. Sometimes you might get an IP and not connect instantly.
Last edited by VOT Productions (2011-10-22 11:32:49) -
How to modify the standard script in scripts?
how to modify the standard script in scripts?
Nagaraju,
Standard scripts cant be modified.
Only thing is you need to copy it to z-form and have to do modifications as per ur requirements.
Here is the procedure to copy standard form to z-form.
goto SE71 t-code, then select the menu path : <b>Utilities -> Copy from Client</b>
then it will take to another screen, give the form name as Standard form name, if u r copying a stadard invoice means, type RVINVOICE01 and target form, ZRVINVOICE01. Now press execute button, it will copy the form into 25 languages. Now come back to se71, enter Z-form name and do the required changes.
Hope this hint may help you, Pls close the thread if u met with correct answer.
Regards,
Sujatha. -
I am running Facebook and leaving it on..when I come back to it or sometimes when i am using it i get this Unresponsive Script Error - Script: chrome://greasemonkey/content/prefmanager.js:55. If i click continue or stop it will go away but many times the page is frozen so i have to restart Firefox. I am not using Chrome so i am surprised about that part of the error. I have read the other posting and have tried to change the time under config......can't remember the rest and it has not worked. Please advise what else i can do.
In Firefox the use of the term chrome refers to the user interface and other elements that are not part of the web pages.
See https://developer.mozilla.org/en/Chrome
Your problems seems to be caused by the GreaseMonkey extension.<br />
See [[Troubleshooting extensions and themes]] -
Firefox has crashed numerous times on me tonight, and I keep getting an unresponsive script error (Script: chrome://devany/content/main.js:254) regardless of what website I'm on. NoScript will not block this script, and it's popping up with an increasing and alarming frequency. It's completely crippled my Firefox, and getting the a large enough window between unresponsive script warnings to get the Troubleshooting Information from Firefox took me a good 20 minutes. It's a very persistent script. I've already re-installed Firefox and restarted my computer, and scanned for viruses/malware. I'm on a Mac, if it makes a difference.
== This happened ==
Every time Firefox opened
== Tonight. I can't say what site I was on, though I first noticed it on DeviantArt and thought it was their new layout producing problems. ==
== User Agent ==
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7yay, I had this same issue, and I too browsed deviantArt and also have got Deviantanywhere add-on installed. : D
I'm so glad that You've found a solution and shared it with us.
I was really getting worried that I'd done something to get malware installed on my 'puter. *Phew* !!
I'm going to disable DeviantAnywhere after I post this and hopefully this will be fixed for me too!
I actually hadn't kept my firefox up to date. but.. *shh...*
I updated it and after I did, it told me that there was a script running that was not responding. : )
yay for FireFox~
~QuinsY. -
About scripts and script styles
hello sirs,
i have developed small sap script program.
Is it make colors for that one & change font sizes when it prints.
can tell me some features also.
please tell me how use it sap script styles , script font matintainance.Hi,
I think you cannot have any colours for the Script but you can change the font through Paragraph formats and Character formats.
Using Paragraph formats you can set different options like - left margin, right margin, indent, bold, italics etc... which are applicable for the entire paragraph.
Similarly you can also apply options like superscript, subscript, bold etc... through character format for a particular character.
Like smart styles for smart forms there are no seperate styles for script. We have to define the style while creating the Paragraph formats and Character formats.
Hope this helps you.
Thanks,
Sri. -
Script ilk #script or #instance?
If I have a script returning the me object should it's ilk be #script or #instance?
ie.
In a script member named "Test"
on new me
return me
end new
In another routine;
scr_obj = script( "Test" ).new()
put ilk( scr_obj )Yep. That's the way it works.
"new" is special. It is called the Constructor and is used to create an instance of a script.
If you call a method on a script directly through the script object such as "scr_obj = script( "Test" ).test()", then "me" is the script object because that is the object you are referencing. Essentially you are calling a static method on the "Test" class. Generally you don't do this. Instead you create an instance by calling "new" and then call any other methods through the instance reference that is stored in a variable.
TestOb = script( "Test" ).new()
CurMe = TestOb.test()
put ilk( CurMe )
Or you can use chaining:
CurMe = script( "Test" ).new().test()
put ilk( CurMe ) -
CS6: Where is the "Send Script" sample script?
On page 10 of "Adobe Illustrator CS6 Scripting Guide", it says:
There is a new method in the JavaScript Application class, sendScriptMessage(), that allows you
to send a script to a plug-in and receive the result. A new sample script, Send Script, in the
Scripting/SampleScripts folder, illustrates the usage.
Where is it? Adobe just forget to package this script into?Hi moluapple,
That's odd. I looked and could not find it either. However, I checked with the engineering team, and here's sample code to use the sendScriptMessage() method:
app.sendScriptMessage("Adobe Custom Workspace","Switch Workspace", '<workspace="Tracing"');
Hope this helps.
Cheers,
David
Maybe you are looking for
-
has anybody used DynamicConfigurationBean for Mail adapter? could you answer my below query? I have file droped by Legacy system and PI has to pick the file and send the content of the file to Mail as body of the mail.. i have used DynamicConfigurat
-
Has anyone configured MSS in my SAP ERP 2004?
Hi All, I am configuring business Package 60.1 in my sap erp 2004. Can anyone tell me the detail procedure to configure. Where do i find these services in SPRO( backend). Thanks in Advance, Mahesh.M.R
-
Oracle SOA Suite 10g; problem install
Good morning, I try to install Oracle SOA Suite 10g, the install hangs at the last step in installing Oracle Web Services Manager by invoking the following message: Unable to locate a valid OC4J URI. Probably The Server is down. When I execute opmnct
-
Messages as japanese appear as garbage on other end
I have an AT&T IPhone 4 running IOS 5, my friend has Verizon IPhone 4 running IOS 4. When I send her a message in japanese it appears as garbage, when she sends me a message in japanese it comes over fine. Messaging in english works fine of course. W
-
Develop native application for blackberry-ADF Mobile
Hi, Can anybody tell me, how to develop native application for blackberry using adf? Thanks & Regards, Anshul Mittal