How to play with javascripts from command line?
This is a problem that I always have no clue how to deal with.
To begin with, take a look at this page: http://jsharer.com/file/1345737.htm
If you click on "[TUTHE@ManYv][D`z][FLCL][05][H264_Vorbis][E4273181].mkv", after a little while a little window pops up and if you right click on the "点击此处开始下载", you can copy the direct download link.
I previously used a simple bash script using curl to parse direct download links from this site. I like to do it at command line. It was easy because the link used to be directly shown in the page source code (though I had to call curl twice for it, it was fine.)
But now I can't. It's all javascript. I ain't got no idea how to deal with this kind of stuff. I made my attempt to look at the page source, all I can tell is that the <div id="download_block"> part and the <div id="lord_content"> line seems to be important.
I want to use my old good command line instead of click click click!
Can somebody help me with this? Or please just give me some hints. It'd be fully appreciated. Thanks!
If you know python, the package community/python-mechanize lets you automate a lot of this kind of thing. You can tell it to go to url so-and-so, simulate a click on the third link matching regexp such-and-such, preserving cookies the original page gave you, and so on.
Has made most of my webpage scraping a hell of lot easier.
EDIT: but I don't know whether it processes embedded Javascript, perhaps not.
Last edited by Profjim (2009-09-03 11:22:37)
Similar Messages
-
Hi All
We have 11.1.1.7 ojdeploy to compile our app.
We notice in the log that not all jars are used in classpath arguments when we explicitly set them up for compilation.
eg:
<path id="classpath">
<pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
<pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
<pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
<pathelement location="interface/public_html/WEB-INF/lib/a.jar"/>
<pathelement location="interface/public_html/WEB-INF/lib/b.jar"/>
<pathelement location="interface/public_html/WEB-INF/lib/c.jar"/>
<pathelement location="interface/public_html/WEB-INF/lib/d.jar"/>
</path>
Log Output -
[ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/bin/javac
[ora:ojdeploy] -g
[ora:ojdeploy] -Xlint:all
[ora:ojdeploy] -Xlint:-cast
[ora:ojdeploy] -Xlint:-empty
[ora:ojdeploy] -Xlint:-fallthrough
[ora:ojdeploy] -Xlint:-path
[ora:ojdeploy] -Xlint:-serial
[ora:ojdeploy] -Xlint:-unchecked
[ora:ojdeploy] -source 1.6
[ora:ojdeploy] -target 1.6
[ora:ojdeploy] -verbose
[ora:ojdeploy] -encoding Cp1252
[ora:ojdeploy] -classpath
[ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/resources.jar:
[ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/rt.jar:
[ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/jsse.jar:
[ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/a.jar"/>
[ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/c.jar"/>
1- Is it because it depends on how jpr or jws are configured ?
2- How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?The first warning is happening because you're stating drivers for input devices without need. You haven't disabled hotplug so evdev gets used instead of kbd. This is normal, and you should change the driver line from kbd to evdev so that whatever options (if any) you've specified for the keyboard get parsed.
The second warning is about you not installing acpid.
The third I have no idea about, but look at the synaptics wiki. None of the (WW) are related to your video card.
And every card that has 2 or more output ports show up as "two cards". You also don't need to specify the pci port in xorg.conf. edit: this is the general case with laptops, might be different for desktops.
When I do lspci -v I get:
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. Device 0110
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at dfe80000 (32-bit, non-prefetchable) [size=512K]
I/O ports at d0f0 [size=8]
Memory at c0000000 (32-bit, prefetchable) [size=256M]
Memory at dff00000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
Subsystem: Micro-Star International Co., Ltd. Device 0110
Flags: bus master, fast devsel, latency 0
Memory at dfe00000 (32-bit, non-prefetchable) [size=512K]
Capabilities: <access denied>
And it doesn't matter if it errs in trying to sli up with it self. That's just not a possibility.
Last edited by gog (2009-10-15 23:59:49) -
Error while running a Discoverer Workbook with parameter from command line
I am trying to run a discoverer report from command line and export the results in xls on to my local machine. I could do it fine for a simple workbook, but if I add a parameter(madatory) to the workbook and run it from command line specifying the parameter value I wanted to run the report for, I do not get any results. Here is the command line I am using.
dis51usr.exe /connect user/password@database /apps_user /apps_responsibility "System Administrator" /eul EUL_US /open C:\Disco\Test.DIS /sheet Testsheet /parameter Period Jan-07 /export xls C:\Disco\X.xls /batch
Parameter value is entered in correct format(Jan-07).
When I removed /batch from this to see if I get any error, Discoverer Desktop opened up, logged in and gets terminated saying 'Oracle Discoverer Desktop has encountered a problem and need to close. We are sorry for the inconvenience.'
Did anybody come across this issue before?Hello,
If you have a few minutes, Windows is also aborting for me:
the differences are, my situation is:
a) am running the command line from a .bat file
b) am NOT running with parms, want the discoverer query to come up for the user
c) am running a query from the database
i am signing in as myself BUT running a query that was created by a generic user called SREG
c) if i run the .bat file from Windows Explorer, the query opens fine
d) if i execute the .bat file from within Microsoft Access using the shell command,
the query opens and then aborts RIGHT BEFORE the parm screen would display
e) btw, if i modify the .bat file, to run a query from MY database signon, then (d) - running .bat file
from vb using SHELL command works
Do you have a ideas as to why (d) does not work? I would be very grateful for your time, tx, sandra
this is what i posted yesterday, tx: Re: Running Discoverer command line
tx, sandra -
How to run an executable from command-line
I'm learning how to use the Terminal and I got stuck in a silly thing (I suppose it is). How can I run an executable file from command-line in Terminal?
For example: I have a file named "Hello" in the folder /sample. If I use the ls command (ls sample), I can see the file Hello. Then I move to the directory (cd /sample) and try to run the file Hello (typing "Hello") but I got "command not found" message.
If I drag the Hello file from Finder to Terminal and hit Return, it runs perfectly. And if I type the full path to the file (even if I'm already inside its directory), it also runs.
So, my doubt is if there is any command to run an executable from command-line.
ThanksKJK555 wrote:
Hi VK:
Can you enlighten me on why it's neccessary to do the "./" thingy in OS X when in unix/linux
I never had to resort to doing that?
Kj
I took the trouble of reading *man bash* and it explains the issue. to add the current directory to PATH you need to add an empty path to PATH like this
PATH=$PATH::
you can add it to ~/.bash_profile so that it's executed automatically when you start bash. I suspect the linux system you are talking about had this set up by default or had it added to PATH in /etc/profile which defines PATH globally. -
How to run Endeca Graphs from command Line
Hi,
I would like to know if there is any way to run Endeca Graphs from command line in Windows.
Thank you,The correct way to execute a graph using the command line in windows is.......
Execute the following command from the project folder:
C:\Oracle\Endeca\Discovery\3.1.0\IntegratorETL\configuration\org.eclipse.osgi\bundles\5\1\.cp\lib\bin\clover.bat -plugins "/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/5/1/.cp/lib/plugins;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/6/1/.cp/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/9/1/.cp/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/14/1/.cp/lib/plugins/;C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/21/1/.cp/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/23/1/.cp/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/plugins/com.endeca.latitude_1.0.0/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/358/1/.cp/lib/plugins/" -noJMX graph\graph_name.grf
Our costumer needed to run some ETL process from ODI and once it finished start a Clover ETL process (automatically). So we created a .bat file witth the above command and then in ODI we created a package with all ETL interfaces and the last step of the package was a OScommand component that excecuted the .bat script from the Endeca's project folder.
Hope you find this post helpfully. -
How can pass the data from Command line to Applet?
Hi,
I am writing a chat application by using sockets. For that purpose I need to pass the parameter data from command line to Applets. Is there any method to receive command line args data in Applets? If so please tell me.Passing command line arguments to an applet is not possible, but for the same you can try using param tags, within your applet tag.
For eg:
<applet.......>
<param name="xyz" value="abcdef">
</applet>
Within the applet's any method like init call <getParameter("xyz");>
will return u the value.
[email protected] -
How can I Capture screen from command line
When I start FME from command line it automatically capture
from first camera
But I want it start capture form screem automatically
or I want to start 2 capture progress
1 form camare
2 form screen
ThanksI don't print from the command line, so I don't know this off the top of my head. There are instructions for doing this in your CUPS documentation. Read Chapter 2 & 3 here:
http://localhost:631/sum.html -
How to deploy an .ear from command line.....
Definetly newbie question folks....
I want to deploy from command line.....
Hop in folks and help this newbie guy ;)
Thanks
Desi_ThugPlease redirect the query to http://forums.bea.com/bea/category.jspa?categoryID=2004 - WebLogic Server/J2EE Newsgroups
FYI
http://edocs.bea.com/wls/docs91/deployment.html -
Hi, does anyone know how to invoke the JDev 10.1.3 oc4j_remote_deploy.jar from the command line? We have it working for 10.1.2, for automated deployment scripts.
If I try the same thing for 10.1.3, I get an error.
See below my command line and the output.
I think the error is in the Oc4jDcmServlet URL, the format seems to have changed from 10.1.2 to 10.1.3.
I tried to reverse-engineer by using an HTTP tracer, but that did not help.
Any help would be much appreciated.
Regards, Maarten Brugman
======================== command line: ==================
"C:\j2sdk1.4.2_09\bin\java.exe" -Djava.protocol.handler.pkgs=HTTPClient -jar C:\jdev-work\ebrp-new\ear\target\installer\oc4j_remote_deploy.jar http://lnvx0027:29805/Oc4jDcmServletAPI/ oc4jadmin ***** listApplications /oracle/oaedv03/oracle/oas/10.1.3/ontwj2e1013 UNDEFINED UNDEFINED OC4J_OEBRP
============ output: ====================================
Initializing log
Servlet interface for OC4J DCM commands
Command timeout defined at 600 seconds
Executing DCM command...
Executing command listApplications /oracle/oaedv03/oracle/oas/10.1.3/ontwj2e1013
UNDEFINED UNDEFINED OC4J_OEBRP
Command = LISTAPPLICATIONS
Opening connection to Oc4jDcmServlet
Setting userName to oc4jadmin
Sending command to DCM servlet
**** Could not check HTTP response code
** Thread[main,5,main] ** Fri May 11 17:18:13 CEST 2007 ** ** EXCEPTION: java.
net.SocketException: Unexpected end of file from server
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:822)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:820)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:635)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272
at oracle.j2ee.tools.remote_deploy.Oc4jDcmClient.isHttpResponseOk(Unknow
n Source)
at oracle.j2ee.tools.remote_deploy.Oc4jDcmClient.sendCommand(Unknown Sou
rce)
at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.execute(Unknown Source
at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.listApplications(Unkno
wn Source)
at oracle.j2ee.tools.remote_deploy.Oc4jDcmMain.main(Oc4jDcmMain.java:71)
#### HTTP response is NOT ok
Closing connection to Oc4jDcmServlet
#### DCM command did not complete successfully (-1)
#### HTTP return code was -1
============ end output =================================In my opinion, you will succeed in handling linefeeds in output texts by using an <tt><af:outputFormatted></tt> tag in conjuction with a JSF converter that replaces the linefeeds with a <tt><br></tt> tag in the text. You will have to implement a custom converter class (this is quite simple, see below) and to set it to the <tt>converter</tt> attribute of the <tt><af:outputFormatted></tt>. The converter class should look like:
public class MyLinefeedConverter implements javax.faces.convert.Converter
public MyLinefeedConverter() {
public Object getAsObject(FacesContext context, UIComponent component, String value) {
return value;
public String getAsString(FacesContext context, UIComponent component, Object value) {
if (value==null) return "";
if (value instanceof String) return ((String)value).replace("\n", "<br>");
return value.toString();
}In this way the linefeeds in your text values will be replaced by <tt><br></tt>, which will be rendered by the corresponding <af:outputFormatted> tag as line breaks. -
VBScript which is called with Arguments from Command Line
Hi There.
I have been tasked to create a VBScript which needs to accomplish the following:
It needs to be called from a command line using 4 different arguments, the arguments in order as follows:
- Drive letter including colon
Warning threshold in percentage
Warning threshold in GB remaining
Recipient email address
I need to be able to set up a scheduled task, to run this script, but at the same time I need to be able to specify multiple drive letters as separate steps but on a single task. The script needs to automatically run every 4 hours, starting at 06:00AM
in the morning and running no later than 22:00 at night.
The end results, need to then be e-mailed to the Recipient which is specified in Argument (3).
Following is my current script, it is not complete as I am currently pulling my hair out due to having a lack of knowledge of VBScripting.... :( The current script also loops every 10 minutes or so, and uses the incorrect way of sending the results,
we would like to use POSTIE.EXE to send the mail as we would want to eliminate web traffic (Microsoft Schema's) in this script.
=====================================================================================
Const emailFrom = "default_from_email_address_comes_here" 'From email address
Const ExchangeServer = "ExchangeServerName_comes_here" 'Enter your Exchange server name here (FQDN)
Const WaitTimeInMinutes = 10 'Wait time between loops. This is will be in minutes
Dim WshShell, objArgs, strIP, objWMIService, LogicalVolumes, strDriveLetter
Dim objItem, strDriveName, IntCapacity, IntFree, DiskFreePct
Dim strIgnoreFlag
Dim strMessage, IntStatistic
on error resume next
strDriveLetter = WScript.Arguments(0) 'This is the drive letter which you want to monitor on the localhost
DiskFreePct = WScript.Arguments(1) 'This is the threshold percentage of free space
ThresholdGB = WScript.Arguments(2)
Recipient = WScript.Arguments(3) 'This is where the e-mail needs to be sent to
If Err.Number <> 0 Then
msgbox "You did not supply the arguments after calling the VBS file:" & vbcrlf & "<Drive Letter, eg: C:>"& vbcrlf & "<Warning Threshold in Percentage> "& vbcrlf &"<Warning
Threshold in GB Remaining> "& vbcrlf &"<Recipient E-Mail Address>"
WScript.Quit
End If
Set WshNetwork = WScript.CreateObject("WScript.Network")
WScript.Echo WshNetwork.ComputerName
arrServerList = array(WshNetwork.ComputerName) 'This is where your localhost will be used as the query
Do until i = 2
'Clear the message variable
strMessage = ""
'Poll the array of servers
PollServers(WshNetwork.ComputerName)
'Email if there is a message
if strMessage <> "" then
EmailAlert(strMessage)
end if
'The script will loop for now just for testing. Uncomment the line that follows the loop logic to cancel the loop.
WScript.Sleep(WaitTimeInMinutes*60000)
'i = i + 1
Loop
Sub PollServers(arrServers)
on error resume next
for each Server in arrServers
set objSvc = GetObject("winmgmts:{impersonationLevel=impersonate}//" & Server & "/root/cimv2")
set objRet = objSvc.InstancesOf("win32_LogicalDisk")
for each item in objRet
if item.DriveType = 7 then
end if
if item.FreeSpace/item.size <= AlertHigh then
strMessage = strMessage & UCase(strPC) & " Drive '" & item.caption & "' is low on disk space! There are " & FormatNumber((item.FreeSpace/1024000),0)
& " MB free" & vbCRLF
end if
next
next
set objSvc = Nothing
set objRet = Nothing
End Sub
Sub EmailAlert(Message)
on error resume next
Set objMessage = CreateObject("CDO.Message")
with objMessage
.From = emailFrom
.To = Recipient
.Subject = "Server " & WshNetwork.ComputerName & " is low on Disk Space"
.TextBody = Message
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = ExchangeServer
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Configuration.Fields.Update
.Send
end with
Set objMessage = Nothing
End SubI've managed to get the script fully working as required.
================================================================
Const emailFrom = "your_email_here" 'From email address
Const ExchangeServer = "exchange_server_name" 'Enter your Exchange server name here (FQDN)
Const WaitTimeInMinutes = 240 'Wait time between loops. This is will be in minutes
Dim WshShell, objArgs, strIP, objWMIService, LogicalVolumes, strDriveLetter
Dim objItem, strDriveName, IntCapacity, IntFree, DiskFreePct
Dim strIgnoreFlag
Dim strMessage, IntStatistic
Dim DrivePercentage
Dim DriveSpaceRem
Dim mbFreeSpace
Dim intFreeSpace
Dim UsedPercentage
on error resume next
strDriveLetter = WScript.Arguments(0) 'This is the drive letter which you want to monitor on the localhost
DiskFreePct = WScript.Arguments(1) 'This is the threshold percentage of free space
ThresholdGB = WScript.Arguments(2)
Recipient = WScript.Arguments(3) 'This is where the e-mail needs to be sent to
If Err.Number <> 0 Then
msgbox "You did not supply the arguments after calling the VBS file:" & vbcrlf & "<Drive Letter, eg: C:>"& vbcrlf & "<Warning Threshold in Percentage> "& vbcrlf &"<Warning Threshold in GB Remaining> "&
vbcrlf &"<Recipient E-Mail Address>"
WScript.Quit
End If
strComputer = "."
'WScript.Echo strComputer
Set WshNetwork = WScript.CreateObject("WScript.Network")
'WScript.Echo WshNetwork.ComputerName
arrServerList = array(strComputer) 'This is where your local host will be used as the query
Do until i = 1
'Clear the message variable
strMessage = ""
'Poll the array of servers
PollServers strComputer,strDriveLetter
'Email if there is a message
if strMessage <> "" then
EmailAlert(strMessage)
end if
'The script will loop for now just for testing. Uncomment the line that follows the loop logic to cancel the loop.
'WScript.Sleep(WaitTimeInMinutes*60000)
i = i + 1
Loop
Sub PollServers(strComputer,strDriveLetter)
Selectstring = "Select * from Win32_LogicalDisk Where DeviceID = '" & strDriveLetter & "'"
on error resume next
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery(Selectstring)
For Each objItem in colItems
if objItem.FreeSpace/objItem.Size * 100 <= DiskFreePct or mbFreeSpace <= ThresholdGB then
DrivePercentage = FormatNumber(objItem.FreeSpace/objItem.Size *100,0)
DriveSpaceRem = FormatNumber((objItem.FreeSpace/1024000),0)
intFreeSpace = objItem.FreeSpace
mbFreeSpace = intFreeSpace / 1024 / 1024 / 1024
mbFreeSpace = round(mbFreeSpace,0)
intTotalSpace = objDisk.Size
UsedPercentage = 100 - DrivePercentage
strMessage = strMessage & " "
end if
Next
End Sub
Sub EmailAlert(Message)
on error resume next
Set objMessage = CreateObject("CDO.Message")
with objMessage
.From = emailFrom
.To = Recipient
.Subject = "" & WshNetwork.ComputerName & ": Alert " & Now & " -> " & UCase(strDriveLetter) & " fill level = " & UsedPercentage & "%, Space Remaining = " & mbFreeSpace & "
GB"
.TextBody = Message
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = ExchangeServer
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Configuration.Fields.Update
.Send
end with
Set objMessage = Nothing
End Sub
'WScript.Echo "done" -
How to execute ODI scenarios from command line in Unix
Hi Friends,
I am using ODI 11g.
I want to execute ODI senarios using the command line argument in Unix.
Please let me know how to proceed with this.
Thanks,
LonyHi,
unser the /your_ODI_HOME/agent/bin folder.
Excute this
sh startscen.sh REFRESH_ID 001 GLOBAL 5 -NAME=agent_ODI
REFRESH_ID=Your Scenario name
001:Version
GLOBAL:Context name
5=Log Level
agent_ODI=Your agent name
Regards -
How to execute IDC services from command line
Hey Guys,
is there some way we can execute IDC Services from command prompt.
your any pointers will be highly appriciated.
regards,
sapan
Edited by: sapan on Mar 9, 2009 7:26 AMHey sapan,
You can use IdcCommand to execute services from the command line. The process is as follows:
1. Create a text file with the services calls you want to make, the definitions are in hda format:
@Properties LocalData
IdcService=UPDATE_DOCINFO
dID=1
dDocName=000001
dDocType=MyType
dSecurityGroup=Public
dRevLabel=1
dDocAuthor=sysadmin
dDocTitle=My Title
@end
<<EOD>>
(Note: for multiple entries in the file <<EOD>> is very important)
2. Execute IdcCommand from the <content server install>/bin directory:
IdcCommand -f image_update.hda -u sysadmin -l c:\idccommand.log
Options:
-f = file with service definitions
-u = user to run as
-l (lowercase L) = location for log of execution
More detailed documentation can be found in the Idc Command Reference (idc_command_reference_10en.pdf).
Hope that helps,
Andy Weaver - Software Consultant
Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw > -
How to run the JNLP from Command Line
Hi All,
how to run the JNLP file from the remote machine from our command line. I have requirement to run this JNLP file in java 1.4.2 version. Can any one tell me the procedure or the steps that are needed to run this file at command prompt.
Regards,
Prasanna.
Edited by: VPrasanna on May 19, 2008 4:43 AM>
I am getting "**java.security.AccessControlException: access denied (java.net.SocketPermission wwwgate0.mot.com:1080 connect,resolve)**" when I start the Web Start Client. >This seems like a largely separate problem to running the JNLP from the command line. It might have been better to end this thread (assign the dukes) and start a new one.
>
..Can you help me in resolving this issue. >However, I suspect I can guess the problem.
If this app. is normally hosted on wwwgate0.mot.com then it can 'phone home' to the server without further permission, but if you are running it from the command line, that might not be the codebase anymore.
If you wish to do 'local testing' of such an app., I would recommend setting up a server like Tomcat on the local machine, and serving the test app. directly off that.
>
..Its urgent...>Sun offers a number of options for urgent matters, such as support tickets. Perhaps you should look into one of those. -
How to reload firewall rules from command line on firewall ?
Hi all,
I am trying to create script that controls firewall on server. OS version is OS X Server 10.5.6.
Part of firewall rules is created using firewall admin tools, part of Server Admin Tools. My first question is where are those rules stored permanently ? As far as I understood it should be set of ipfw rules but they are not stored in /etc/ipfilter/ipfw.conf.
Idea of script is this:
I have set of rules that should be controlled by Server Admin Tools.
Also, I have some dynamic rules.
Whenever some change occurs, I created script that does following:
/sbin/ipfw -f flush - to flush all existing rules
/sbin/serveradmin stop ipfilter - to stop existing firewall
/sbin/serveradmin start ipfilter - to restart firewall and reload permanent rules
Add my set of rules...
After flushing all rules and issuing stop and start ipfilter none of rules set through Server Admin Tools are not reloaded. So how should I reload them ? How to save them permanently in the first place ?
Please note that I do not have access to server (for security reasons). I am developing script on my Mac, sending to client and he tests it. So I cannot do a lot of testing.
Thank you in advance.
Best regards,
DusanUnix and Terminal queries are best posted to the Unix forum under OS X Technologies where those mavens frolic.
-
How to create OID attributes from command line in unix system
Hi,
I have to create OID attributes through ldif files in unix system. I dont know how to run it in unix system under which folder. I already have ldif files for creating OID attributes. Please help.Hi,
unser the /your_ODI_HOME/agent/bin folder.
Excute this
sh startscen.sh REFRESH_ID 001 GLOBAL 5 -NAME=agent_ODI
REFRESH_ID=Your Scenario name
001:Version
GLOBAL:Context name
5=Log Level
agent_ODI=Your agent name
Regards
Maybe you are looking for
-
Calendar Month View Today in the middle of the screen
I use the Month View on Calendar 7.0 app all the time. When I click on Today button it brings today to the center of the screen. This means when I want to see today and forward, I am forced to see the three prior weeks and then have to scroll
-
Cannot download firefox to laptop
download hangs at transferring details from maps.google.com
-
Waiting for a thread to finish
I've been researching this issue for a couple of days, but I dont think I know enough about threading to ask the right question in a search engine. Sorry if this is a basic blunder....I dont write swing often and it shows. I have a swing app that inc
-
How to convert Outlook PST files to Entourage MBOX
I am migrating over to mac after my windows system has been corrupted. Luckily I had back-up of all my mails in a storage device. Outlook stored them as .pst files. What I need to do now is take those .pst files and convert them to .mbox files for En
-
I updated my ipad to ios7 and now it wont work my Ipad is blank
I updated my ipad2 to ios7 now it won't work its blank only shows the iTunes and the charging cable.I could turn it off and on but it won't do nothing else.help please