To find whether a form using HOST (Unix) command to exit/execute a process.
Hi all,
I have some(Little bit) knowledge on forms.But here I got one requirement which was confusing me .The requirement is ,we have nearly 70 custom forms developed
using TEMPLATE.fmb.Now I have to open each and every form and have to check whether that form is using any HOST (unix) command to exit to the shell and
execute a process .I never got this type of requirement previously .Can any one help in how to search for those commands ,I.e is there any standard to use Unix call in
particular trigger or etc..
Thanks in advance .
Regards,
Gopi.CH
Your question is a little unclear. The "HOST" command is an Oracle Forms built-in command which allows you to execute OS commands. So the only part of it that belongs to forms is the part that looks like HOST(). The contents within the parentheses would be the command you wanted to execute. For example:
HOST('/path/to/your/script.sh');Refer to the Forms Builder online help for more information about how to use the HOST command.
Similar Messages
-
Using Sent Unix Command in ARD 3 with proxy authentication
I'd like to use Unix commands to update Apple software through ARD thus allowing me to lock the computer screen before the process using the ARD command to do so, thus keeping the users from interfering with the process .
Our network utilizes password protected firewall proxy that hangs ARD when using the softwareupdate command through ARD's "Send Unix Command..." at the point in which it would ask for authentication if using the same command in the terminal.
Is there a Unix/terminal script or a series of script commands that could be modified to wait and enter the appropriate authentication at the previous mentioned prompt?
I've researched this topic on this forum and discover a few post that states it is not possible but they are fairly old posts so I am hoping ARD 3 has some scripts or commands that can pass thru a username and passwordWelcome,
I use the "System Events" handler, e.g.:
tell application "System Events" to delay 5.5
tell application "System Events" to keystroke "K"
tell application "System Events" to delay 0.5
tell application "System Events" to keystroke return
Regards,
Shawn -
Find Software with Version using Power-shell Command
Hi All,
In have very urgent requirement to find the version of particular software .Is there any way to find the result as we write below snippet of code to find the software list using batch script.
batch script.
WMIC product where 'name like "%Opera%"' get name,version
Thanks, Quality Communication Provides Quality Work. http://siddiq-sharepoint2010.blogspot.in/ Siddiqali Mohammad .Does that WMI query grab all installed software? When I check via WMI I get many pieces of software, but some appear to not be registered there, e.g. adobe flash player. most identify in both queries, however some show up in WMI but not in the
registry and v/v.
PS C:\WINDOWS\system32> Get-WmiObject win32_product | Select-Object -Property Name,Version | Sort-Object -Property Name
Name Version
64 Bit HP CIO Components Installer 4.2.1
ActivClient x64 7.0.2
Adobe Acrobat X Pro - English, Français, Deutsch 10.1.9
Adobe AIR 4.0.0.1390
Adobe Customization Wizard XI 11.0.0
etc.
When I check the uninstall reg keys (which processes a bitfaster, about 2-3 seconds instead of 12-13 seconds on a test machine ) I see:
Function Get-InstalledProgramInfo
$InstalledSoftware = (Get-ChildItem HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ | Get-ItemProperty)
IF (Test-path HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\) {
$InstalledSoftware += (Get-ChildItem HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\ | Get-ItemProperty)
IF (Test-path HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\) {
$InstalledSoftware += (Get-ChildItem HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ | Get-ItemProperty) }
($InstalledSoftware | Where {$_.DisplayName -ne $Null -AND $_.SystemComponent -ne "1" -AND $_.ParentKeyName -eq $Null})| Select-Object -Property DisplayName,DisplayVersion,InstallDate | Sort-Object -Property DisplayName
DisplayName DisplayVersion InstallDate
ActivClient x64 7.0.2 20140314
Adobe Acrobat X Pro - E... 10.1.9 20140227
Adobe AIR 4.0.0.1390
Adobe Customization Wiz... 11.0.0 20140325
Adobe Flash Player 12 P... 12.0.0.43
etc. -
Using icat + unix command/applescript to initiate audio/video chat
hi
has anyone written a unix command (i.e. perl script) or applescript to automate initiating a video chat or audio chat upon receiving a message (i.e. via icar)?
there are a few scripts on the web, but none that i could get working.
thanksHi
For auto accept see http://www.macosxhints.com/article.php?story=20050512152831112
Tony -
How to find the session info using the Unix PID
Hi Guys
We found in alert log that Some process with Unix pid 3416182 makes some transaction fail. It happened on weekend and now when we try to find it in v$process we did not find any info. Is there any place where oracle stores the PID History where in i would be able to find which process,session,user caused the transaction failure.
Kindly help me. I m using oracle 10G R2.
Thanks in advance
Ram
Edited by: user448837 on Jun 29, 2009 2:04 AMWe found the transaction failure because of an online rebuild.This rebuild is with a PID which none of the DBA's ran.From trace we can just see the unix PID.With this we need to find the user who ran this rebuild
-
Install DMG file using a UNIX command
How do you install a DMG file using ARD? I've managed to get it to copy across and mount on the target machine but that's where I get stuck.
I watched the tutorial videos and according to them it is possible.
Anyone have any hints?If you're copying the DMG to the client workstation and opening it, you probably then will need to take control of the workstation and run the installer from there. Most such installers require some manual intervention and so can't be run from a command line.
If the DMG contains the software as a Mac OS X package, use the Install Packages command under the ARD Manage menu and push the package to the workstations that way. If the DMG doesn't have a standard package but you have a number of workstations that you need to install on, you may find it easier to build your own package. You can find some information on this in the ARD Administrator's Guide, and there are third-party tools such as JAMF's Composer that can help you build a package more easily.
Regards. -
Getting TNS problem while using SQLLDR unix command
I have ons shell file (finalloader1.sh) which contains below lines of code to load a text file (data.txt) into an oracle table.
export ORACLE_HOME=/opt/oracle/product/11.2.0.3/client
export TNS_ADMIN=/sys_apps/admnapps/loadingplace/bin
export ORACLE_SID=d_btgen
export PATH=/opt/oracle/product/11.2.0.3/client/bin:$PATH
## SQL*Loader command to execute the loading of data from data.txt into oracle table ##
function sql_load
sqlldr /@d_btgen, control=/sys_apps/admnapps/loadingplace/bin/load.ctl, log=/sys_apps/admnapps/loadingplace/in/load.log, errors=100
result=$?
check_for_error ${result} 101
function sql_script
sqlplus /@d_btgen @/sys_apps/admnapps/loadingplace/bin/update_insert.sql
result=$?
check_for_error ${result} 102
exec
sql_load
sql_script
See the text file (data.txt) format below , which I am trying to load (note that seperator is pipe operator)
hafees|hamsa||hafees hamsa|39879|+1234|[email protected]|consultant|Professional|215010||2013-08-12||A||sdfgt2
See the controller file (/sys_apps/admnapps/loadingplace/bin/load.ctl) below.
LOAD DATA
INFILE '/sys_apps/admnapps/loadingplace/in/data.txt'
BADFILE '/sys_apps/admnapps/loadingplace/in/bad.bad'
DISCARDFILE '/sys_apps/admnapps/loadingplace/in/dsc.dsc'
DISCARDMAX 5
INTO TABLE emp_data FIELDS TERMINATED BY '|'
name_last"upper(:name_last)"
, name_first"upper(:name_first)"
, c_middle_initial"upper(SUBSTR(:c_middle_initial, 1, 14))"
, emp_name"upper(:emp_name)"
, em_number
, phone
, email
But problems comes here when I am executing my shell file (finalloader1.sh). See the error below.
SQL*Loader: Release 11.2.0.3.0 - Production on Fri Aug 30 07:06:54 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12154: TNS:could not resolve the connect identifier specified
ERROR invoking SQL*Loader in function sql_load.
finalloader1.sh: line 68: print: command not found
Shell Script UNSUCCESSFULLY ENDED with a return code of (1) at \c
08/30/2013/07:06:54 AM
I am not understanding the issue. I googled this many times but came to know that there is some configuration issue in tnsnames.ora file. But as per my knowledge I have done every settings those I know. See my tnsnames.ora file below.
d_btgen.world=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rwad10.rw.discoverfinancial.com)(PORT=1576))(CONNECT_DATA=(SERVICE_NAME=d_btgen.dfs.us)))
Any one of you can help me on this. You timely help is well appreciated.Hi,
At first look it just seems that in your shell script you have d_btgen but in your tnsnames you have d_btgen.world
You need to either add .world to you shell script, remove .world from your tnsnames or add the parameter name.default_domain=world in your sqlnet.ora
Cheers,
Harry -
Calling SQL Loader using HOST command from Developer Forms 4.5
I want to execute a set of code from D2K Forms 4.5 which has interfface with Client - OS ( In my case Windows NT/XP). I want to execute SQL Loader from Forms using Host Command and then after completion of that process, I want to do next transcations ( depending upond success of HOST/SQL Loader).
How to achive this?
I tried writing code like this ...
l_vc_command := 'sqlldr73'
||' USERID='||l_vc_username||'/'||l_vc_password||'@'||l_vc_connect_string
||' CONTROL='||l_vc_filepath||'Upload.ctl'
||' DATA='||LTRIM(RTRIM(l_vc_fileloc))
||' LOG='||l_vc_filepath|| l_vc_log_file || '_' || l_dt_sysdate_str ||'.log'
||' BAD='||l_vc_filepath|| l_vc_bad_file || '_' || l_dt_sysdate_str ||'.bad'
||' DISCARD='||l_vc_filepath|| l_vc_discard_file || '_' || l_dt_sysdate_str ||'.dsc';
HOST(l_vc_command,NO_PROMPT);
After this command i want to do some other code execution. so even if it fails or success, next code is executed. How to control this?
Please help..
Regards,
MilindForms6i running on W2000, Rdbms 8.1.7
in Forms I added a button TEST,
Trigger when-button-pressed : host('test.bat') ;
in directory .......\frm I added file test.bat :
REM ===============
cd /d C:\........\ldr
pause
sqlldr parfile=test.par
pause
type test.log
pause
exit
REM ================
now, pressing TEST button opens DOS window, telling me what's going on, running sqlldr, finally going back to forms
Are you using NO_PROMPT or NO_SCREEN option of HOST command ?
Had a look at Forms 4.5 manuals, there is no mentioning of (a)synchronously operation in connection with HOST command. -
X11vnc: cannot use host name in Windows
Hi, i cannot find my host name if i start x11vnc. It works if i write on Windows XP "Real VNC Viewer" IP adress. When i start x11vnc
The VNC desktop is: asus:0
But if i write to Real VNC Viewer "asus" or "asus:5900", it doesn't work but if i write "192.168.1.101" it works fine. I need find how i can use host name, because i have DHCP on router and IP address will be different. Please help, thanksWell, that's to be expected with standard plastic routers, or can you ping your XP box by name, for example?
Look in your router interface if you can specify DHCP leases with fixed IPs, depending on MAC address.
And then specify hostnames for those IPs in /etc/hosts and c:\windows\system32\drivers\etc\hosts -
Unix command to find version of Informatica, Cognos and DataStage on SUN 5.
How do I find the version of Informatica, Cognos and DataStage using a unix command on my Unix machine SunOS 5.8.
I don't want to use front end to find this information.Um ... typically you would ask the Informatica, Cognos and DataStage people. (All of whom are not part of Oracle afaik ... [yet])
-
Adding Filter to use Unix command
Hi Experts,
Where I can get the information about adding the filters for using the Unix commands.
I have seen the following Filter to use to unix command in one program.
Eg: open dataset <dsn> for input in text mode filter <b>'dos2ux'</b>.?
Here "dos2ux" is a filter Unix command they used in that program.
Please let me know.
thanks,Hi
You can execute an operating system command in the OPEN DATASET statement using the FILTER addition:
The following example works under UNIX:
DATA DSN(20) VALUE '/usr/test.Z'.
OPEN DATASET DSN FOR OUTPUT FILTER 'compress'.
OPEN DATASET DSN FOR INPUT FILTER 'uncompress'.
The first OPEN statement opens the file /usr/test.Z so that the displayed data can be read into it in compressed form.
The second OPEN statement opens the file /usr/test.Z so that the data is decompressed when it is read from the file.
regards
austin -
Compile Forms on a Unix Machine (check for errors in any of the files)
Hello there,
Our organization is wrapping up the development phase and beginning our testing phase. I am responsible for the Configuration Management of our forms, menus, libraries, and reports.
We develop our code in a Windows environment (including compilation check), then we FTP the source files to a unix environment, then we compile the forms on a unix environment. We have this process down pretty well (for a couple of files at a time).
Now we would like to automate our "build" procedure. This process involves the following tasks.
1.) Extract all the source files from our vault software (PVCS)
2.) FTP all the source files to the UNIX environment
3.) Compile all the source files on the UNIX environment
4.) Test the Software on the UNIX application server
We have all of the above working (if no compilation errors occur). I am not sure how to check if any of the files errored during compilation. How can I check to see if any errors occurred during the UNIX source code compilation? I know how to do this manually (look at the output and see if the module compiled), but we are compiling approximately 200 files during our release build process. Maybe some sort of send the compilation results to an output file then search for any files that contain "not generated" (I assume if an error is generated, the text will be displayed to the user).
Is there an easy way to check if any of the forms, menus, libraries, or reports errored during the "automatic" compilation process?
Thanks,
MikeI use this script to generate .fmx files from a zipped .fmb file. This approach allows for much faster FTP because our developers are not co-located with our servers.
In addition, the tail command echoes the final line of the .err as either...
Created form file <filename.fmx>
for success or
Compilation errors have occurred.
for failure.
# SCRIPT: zipgen
# REV: 1.0.d - Used for developement
# DATE: 070515
# PLATFORM: Not Platform Dependent
# PURPOSE: This script takes a single filename variable (w/o extension)
# and it unzips the file then deletes any existing compiled
# form of that name and finally attempts to generate a new fmx
# of the variable name.
# Assign Variables
v_log=$1.err
v_zip=$1.zip
v_fmx=$1.fmx
v_fmb=$1.fmb
# Unzip File: Overwriting any existing file(s)
unzip -q -o $1.zip
# Cleanup ZIP files
rm $1.zip
# Delete existing FMX
rm $1.fmx
# Generate FMB
gen $1
# Display results
tail -1 $1.err
# End of script -
Unix command to send to remote computer
I am looking for a unix command or automator action ( to use with ARD) to send to a remote mac that is running Safari. I would like to be able to reload a web page by using a unix command. Can anyone help me with this?
You mean you're trying to load a local file that's saved on the remote computer? If that's what you're trying to do, you can use the Spotlight search (if the client is 10.4 or 10.5) or the File Search to find the file and then just launch it. If this will be repetitive with the same file name, you can save the task if you have ARD 3.x.
-
Is there a Unix command we can send to a 10.4.11 client to set "Exclude simple hostnames"? The networksetup tool doesn't seem to include one.
Thanks,
DonHi Andy,
Apple Menu > System Preferences > Network > Proxies > Exclude simple hostnames
Proxy servers are used in most enterprise environments. We want to bypass he proxy for internal hosts (webservers, fileservers, etc.). By checking "Exclude simple hostnames", Mac OSX should (but doesn't always, unfortunately) bypasses he proxy server.
We have a command we push out that sets DNS, search domain, passive mode, enables/sets proxy server for the various protocols, turns off AppleTalk, etc., but there doesn't seem to be a way to check the "Exclude simple hostnames" checkbox using a Unix command.
If a Unix command doesn't exist, I'll see if I can use the manifest editor to handle it...would rather not go that route though...
Thanks,
Don -
Sending a unix command but can't authenticate
I'm using ARD to manage a lab and sending an rm command via ARD to delete a particular file in the student account's library. The command is sent fine and then a box comes up asking me to enter the password to complete the task.
The problem is there is no cursor in the box and no matter where I click, I can't enter the password at all.
Has this happened to anyone else?It's actually labeled "Run command as..." I was in a hurry and mislabeled the command in my previous post. You'll find more information on the "Send UNIX Command" option on page 145 of the ARD 3 Administrator's Guide.
Regards.
Maybe you are looking for
-
Startup disk error requesting Force Quit Applications
What is the solution for the error message " Your Mac OS X startup disk has no more space available for application memory"? I still have over 600GB of memory left. My computer is also running very slow but will still open applications.
-
Hi! In this thread: https://decibel.ni.com/content/message/50512#50512, MattP directed me to this Certification Board. If I use the Actor Framework in a CLD exam, will I lose points for launching the Front Panel? For two specific examples of what I m
-
Table for credit limit for risk category for all CCA
Hi All, I want to know in which table I can see default credit limit which is associated to particular risk category for all credit control area. Regards Nidhi
-
I have an iPod dock that i use to charge my iPod, and i noticed that when i plugged it in yesterday that it did not go to the charging screen, and it just stayed at the menu. I thought nothing of it, but when i took it out today, i discovered that i
-
2nd Previous Period from the current period
Hi MM Gurus, Is it possible in MM to open a 2nd previous from the current period? Please advise, Thanks, Themba