Set DISPLAY through rc2.d script
Hi Admins,
I need to set the DISPLAY system level so I have created a script in /etc/rc2.d and placed the following lines
export DISPLAY=localhost:0.0;
/usr/openwin/bin/Xvfb :0 &
But this doesn't seem to set the display correctly. But the x server is starting without an issue.
When I tried to see the display as,
# echo $DISPLAY , it shows blank.
Help is much appreciated.
Thanks in advance,
Dushank
The variables set in RC scripts wont be inherited to the shell. If you set $DISPLAY in a rc-script, it will only be set in that very specific script, and it will only exist during the life time of the script.
To set a variable at shell level, you need to add it to a /etc/profile or the appropriate config file for your shell (i.e. .kshrc, .cshrc, .bashrc and so on).
.7/M.
Edited by: abrante on Apr 6, 2010 10:40 AM
Similar Messages
-
Can we Save BQY without result set/data through dashboard script
Hi All,
Can we save a BQY without result set/data through dashboard script?
Thanks,
SoumitraHi Soumitra,
Its happy that you resolved it by yourself. But if you post your solution here then it will be helpful for everyone else looking for the same solution.
Thanks,
karthick -
Applescript: set display alert to false
I am opening excel file with application "Numbers" and I receive the document warning alert box. I wish to ignore (set to false) these warning alerts. I've scripted:
tell application "Numbers"
set display alert to false
(more stuff)
end tell
...but I get a compile error on line 2
please help. thanksI have looked through the Numbers Applescript dictionary and dont see any property called "display alert" taht can be set to false.
I know that property works in Excel, however i dont think it exists in numbers.
not sure how to accomplish this.
Jason -
How to display special characters in Script...
hi all,
Can any one tell me how to display special characters in script...
how to write in text element
thanks in advance,
prashantHi Prashant ,
What special characters would you like to include .
There are a set of characters / icons /symbols that can be included in Script , for that open a window in edit mode and in the menu there will be an option called Insert , here you can find a lot of characters/symbols that can be included .
Regards,
Arun -
Page wise display through a query
hi all,
i have a 3 records displayed block and i have more than 30 rows/records from a select query.
i want display all the data page wise one by one by clicking specified 4 buttons .
i have 4 buttons 1st for first page, 2nd for nest page, 3rd for last page and 4th for previous page.
how can i do this page wise query display through programming in oracle forms 10g.
for a query you can take (select * from emp;)
can anybody help me to do this.Base your block on query, execute-query and scroll using following:
For first and last page buttons :
first_record;
last_record; Next page and Prev page requires little more coding...
Next Page:
go_record(:system.cursor_record + get_block_property('block',RECORDS_DISPLAYED ));Prev Page:
go_record(get_block_property('block',TOP_RECORD)- get_block_property('block',RECORDS_DISPLAYED ));Also take a look in forms help on scroll_up , scroll_down buit-in. They do not do exactly page up/down, but may be it's good enough for you
Make sure buttons set as Mouse Navigate=No
Edited by: Slava Natapov on Apr 23, 2010 1:25 PM -
Enable display through Putty on Linux
Hi All,
I need am trying to enable the Xmanger windows through putty in my Linux box, I have tried different options but still I am not able to get the display through putty
Here is what I have done:
export DISPLAY=:0.0
[oracle@yblpvdakgrid ~]$ xhost +
Xlib: connection to ":0.0" refused by server
xhost: unable to open display ":0.0"
AND
[oracle@yblpvdakgrid ~]$ export DISPLAY=10.0.x.x:0.0
[oracle@yblpvdakgrid ~]$ xhost +
xhost: unable to open display "10.0.x.x:0.0"
Regards,Hi,
Try undesrant what mean each steps.
Variable DISPLAY define where put output.
export DISPLAY=:0.0 - This mean that you try put output on local display of your server.
Correct:
export DISPLAY=<ip_ of_ workstation_Xmanager>:0.0
In this case X-session will use own IP connections without encryption.
SSH can forward X-sessions inside ssh connections.
In this case you should not define variable DISPLAY. Check that profile script not redefined DISPLAY.
SSH server will do it automaticaly. For check:
echo $DISPLAY
Regards. -
Unable to pass parameter in oracle procedure through unix shell script
Hi Experts,
I have oracle procedure where in I have to pass the value of procedure parameter through unix script.
Follwoing is the sample procedure which i tried to exceute from the unix.
Procedure:
create or replace procedure OWNER.PRC_TESTING_OWNER(OWNER IN VARCHAR2) AS
sql_stmt varchar2(1000) := NULL;
v_count number := 0;
v_owner varchar2(100) := owner;
begin
sql_stmt:='select count(1) from '||v_owner||'.EMP@infodb where rownum<=10';
execute immediate sql_stmt into v_count;
DBMS_OUTPUT.PUT_LINE(sql_stmt);
DBMS_OUTPUT.PUT_LINE(v_count);
END;The script which I used is:
Unix
#!/bin/ksh
parm=$1
echo start
sqlplus -s scott@DEV/tiger <<EOF >>result_1.txt
set serveroutput on;
select '$parm' from dual;
exec owner.PRC_TESTING_OWNER('$parm');
EOFThe script is working fine that is i am able to pass to parameter value through unix shell script. :)
But if I want to pass the value of the owner in cursor , I am unable to pass this value through unix.
Following the procedure which i am trying to implement.
create or replace procedure OWNER.PRC_TESTING_OWNER(OWNER IN VARCHAR2) IS
v_owner varchar2(100) := owner;
CURSOR main_cur IS
select
i.ROWID rid ,
emp_name,
deptid
from v_owner.employee;
CURSOR subset_cur(c_deptid NUMBER ) IS
SELECT *
FROM v_owner.DEPT d
where d.dept_id=c_deptid;
--##main loop
FOR i IN main_cur LOOP
FOR j IN subset_cur(i.deptid) LOOP
BEGIN
insert into v_owner.RESULT_TABLE
END;
END LOOP;
END LOOP;How can i pass parameter value of the stored procedure through unix script(that is "owner" in this case), when these parameter value is
used in cursor? :(
Can anybody help me regarding the same?
Thanks in Advance !! :DIt's not the parameter in the cursor that is the problem, it's that you are trying to use static SQL for something that won't be known until run time (the owner of the table).
You would need to use something like ...
declare
l_owner varchar2(30) := 'SCOTT';
l_ref_cursor sys_refcursor;
type l_ename_tab is table of scott.emp.ename%type;
l_ename_array l_ename_tab;
begin
open l_ref_cursor for
'select ename
from ' || l_owner || '.emp';
loop
fetch l_ref_cursor bulk collect into l_ename_array limit 10;
exit when l_ename_array.COUNT = 0;
for x in 1 .. l_ename_array.count
loop
dbms_output.put_line(l_ename_array(x));
end loop;
end loop;
close l_ref_cursor;
end;
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01 -
Load Balancing ITS on ERP 2005 displayed through EP 7.0
We are having trouble setting up our Cisco ACE load balancer for ITS on ERP 2005 displayed through EP 7.0. The help documentation is a little confusing as to whether ITS does its load balancing by itself, or with ERP 2005, you need an external load balancer. Does ITS on ERP 2005 provide load balancing?
If it does not, we need an external load balancer and are trying to figure out how to configure the ACE tool for that, particularly around session persistence. Since we are also doing reverse proxy, we would need to use session cookies to key the sticky round-robin load balancing off of. The documentation is a little vague on what the cookie variable is for ITS sessions. Can anyone point me to detailed instructions on how to do this?Hi,
despite the SAP Help, you can also check out the following blogs. They explain step-by-step configuration to get a SAP Web Dispatcher running:
How to...Configure SAP Webdispatcher as a reverse proxy
How to...Configure SAP Webdispatcher as a reverse proxy
Setup SAP Web Dispatcher with URL Filter
Setup SAP Web Dispatcher with URL Filter on SuSE Linux 9.0
How to setup webdispatcher to load balance portal in a clustered environment
How to setup webdispatcher to load balance portal in a clustered environment
br,
Tobias -
How can reset password of bulk users in one time through AD or script?
how can reset password of bulk users in one time through AD or script?
Hello Mr. Lovely,
Do you have ActiveDirectory Module which shipped with Windows Server 2008 R2? If you have it, you can complete this task very easily.
#First, you need to import ActiveDirectory Module
Import-Module ActiveDirectory
#Second, generate a SecureString which contains the password.
$securePwd = ConvertTo-SecureString -String "P@ssw0rd!" -Force -AsPlainText
#Third, find the Active Directory users ,and use Set-ADAccountPassword for resetng the password.
Get-ADUser -Filter {Name -like "Test*"} | Set-ADAccountPassword -NewPassword $securePwd
Also, you can review following link for more details about the Active Directory cmdlets.
Active Directory Cmdlets in Windows PowerShell
http://technet.microsoft.com/en-us/library/ee617195.aspx
Best Regards,
Greg Gu
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Set display preferences automatically
Hi All,
Is it possible to set display preferences using automator or apple script? I would like to switch my display prefs from extended display to mirror displays whenever front row is launched.
ThanksAnother thought, is it possible to just configure which monitor front row opens on?
-
Setting DISPLAY for Reports60 server on Solaris
Hello,
Where can I find instructions on how to set the DISPLAY variable for my starting script of the reports60 server?
Everything works fine when I set DISPLAY to a workstation running an XWindows client session, but I don't want to rely on that solution. I want to point to a server.
Thanks in advance...
Paul.Paul,
You should be able to use either xvfb or vnc as headless servers. I think that the instructions for this are included in the iAS release notes. If you can't find anything there or in Metalink then let me know and I'll see what I can dig up.
Thanks
Danny -
I did a full system restore to my phone along with the new 7.0 update. Now I went to restore my phone setting back through Itunes and it goes through all the steps but when it is completed it wont get past the "Connect to Itunes" screen
So what happens when you connect to iTunes?
-
Possible through "Adobe Bridge scripting"
I saved the "Document Info" details in adobe illustrator manually using "Document Info Pannel". But i could not save the "Document Info" details through illustrator action and script. Is it possible the above process through "Adobe Bridge scripting". Kindly advice me.
I am on CS3, so I can't help you with CS version. But anyway here is an example (for CS3).
I assume that an illustrator file is selected in Bridge.
#target bridge
var sels = app.document.selections[0];
var md = sels.metadata;
md.namespace = "http://ns.adobe.com/xap/1.0/";
var myCreator = md.read("http://ns.adobe.com/xap/1.0/", "xap:CreatorTool");
$.writeln ("File was created by " + myCreator);
var myModifyDate = md.read("http://ns.adobe.com/xap/1.0/", "xap:ModifyDate");
$.writeln ("File was modified at " + myModifyDate);
// Let's write some info into IPTC Contact panel (IPTC Core in Metadata panel)
md.namespace = "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/";
md.CiAdrCity = "Kiev";
md.CiAdrCtry = "Ukraine"; -
Does OS Lion 10.7.5 support Airplay mirror of Apple TV 3? I can't find the option in Setting>Display on my mid 2012 MacBook Pro.
I've rebooted all 3 devices, still does not work. Both Apple TV and MBP are on the same wifi. And the Apple TV AirPlay option is on. Can someone help? Thank you.About AirPlay and Airplay Mirroring
AirPlay Mirroring requires a second-generation Apple TV or later, and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer). For non-qualifying Macs you can try using Air Parrot.
Several Apple Articles Regarding AirPlay
Apple TV (2nd and 3rd gen)- How to use AirPlay Mirroring
How to set up and configure AirPort Express for AirPlay and iTunes
About AirPlay Mirroring in OS X Mountain Lion
iTunes 10- About playing music with AirPlay
Troubleshooting AirPlay and AirPlay Mirroring
Using AirPlay
Thanks to the $15 Beamer, AirPlay streaming is still possible on Macs that do not support Airplay and mirroring.
Another solution is the Air Parrot. -
How to set display size of a Region or Dynamic Region?
Hi,experts,
In jdev 11.1.2.3,
I drag and drop a task-flow into a jsf page to create a Region,
and set display size for the region, source code as:
===================
<f:facet name="second">
<af:decorativeBox theme="medium" id="db1">
<f:facet name="center">
<af:panelGroupLayout layout="scroll" id="pgl1"
inlineStyle="width:1200px;height:700px;">
<af:region value="#{bindings.trainflow11.regionModel}" id="r1"
inlineStyle="width:1200px;height:700px;"/>
</af:panelGroupLayout>
</f:facet>
</af:decorativeBox>
</f:facet>
=================
But, the Region is only showed a small fraction area on the parent jsf page whenever during design or run time.
How to set display size of a Region or Dynamic Region?
Thanks!Hi,
the decorative box is supposed to stretch components in the center facet, so at runtime the region should stretch. Can you try with a static region to see if this is an issue with dynamic regions?
Frank
Maybe you are looking for
-
Is there a way to import contacts from an email server to an iphone?
Is there a way to import contacts from an email server to an iphone?
-
Control items inside a state of a component
Hello My application is bulid from main main has four states. each state in main hold a component. each component has about three states of it own. for exmple main has four states state1 state2 state3 state4 in state 1 there a component name Hello T
-
How to clear Success Messages on Tabular Form
In my tabular form I created a manual process for Update/Insert I have disabled the standard APPLYMRU process in order to use mine instead. I've done this so that I can set some column values that I don't want the user to enter. This is a Tabular For
-
Is it possible to have more than 1 catalogue with PhotoShop Album Starter Ed 3.2? (Running on XP). If so, how do I set it up. I have a lot of photos and would like to divide up my collection into 3 separate catalogues
-
Daring Fireball showed the script below that does a word count, in conjunction with ThisService. I want to edit it, so it counts characters. Can anyone tell me what to substitute for what? Thanks in advance! on process(_str) tell application "System