Where is the Shell Script directory?
I have been asked to run a script in the Shell Script directory.
I found the directory /library/scripts ... when I ran the script in there I did not get the expected results, so I assume the directory is incorrect.
Please help..
AFAIK, that folder's for AppleScripts, not shell scripts. For shell scripting, see https://developer.apple.com/library/mac/#documentation/OpenSource/Conceptual/She llScripting/Introduction/Introduction.html
Similar Messages
-
The Shell script keeps hanging
Hello,
I have the following shell script and when i execute, it keeps hanging and nothing happens
Please let me know.
Requirement is to read data from file and pass it to the sql and create files as shown.
code
#!/bin/sh
while read user.dat
do
echo "user = $1 email = $2"
done
sqlplus -S /NOLOG << EOF
connect username/pwd@schema
select user_name,count(*) from apps.fnd_user
where 1=1 and user_name ('$1') and email_address ('$2')
group by user_name;
EOF
if [ $? -ne 0 ]
then
% cat > user_exist
else
% cat > user_notexist
fi
exit 0
Data File
rsreenivasa nullWell, youy have many problems here:
while read user.dat
do
echo "user = $1 email = $2"
done
The "user.dat" string is an invalid variable name, so this loop never runs.
Then, in this sequence:
if $? -ne 0
then
*% cat > user_exist*
else
*% cat > user_notexist*
fi
The cat(1) commands then copy stdin to either "user_exist" or "user_notexist".
You don't show how you run this command, so we cannot tell what happens exactly.
Please delete everything below the "while read ..." loop. Get that loop working as you expect it should. Then add a few more lines and test those. Build the shell script incrementally, debugging each as you go.
Hint: since this is a shell script, run it like this:
$ sh -x ./myscript arg1 arg2 ...
to see what happens as it happens.
Cheers -
Error when running the OWB process flow from the shell script
Hi,
I am able to deploy the process flow succesfully but when I execute the process flow from the shell script,I am getting the following error.Previously it worked fine.
I had to make some chnage in the IP address,so i had to deploy again.
Connected.
SQL> @/oracle/product/owb92028/owb/rtp/sql/oem_exec_template.sql OWB_RTR LOC_P_REL PROCESS P_W_SOURCE "," ","
Elapsed: 00:00:00.00
Elapsed: 00:00:00.01
Stage 1: Decoding Parameters
| location_name=LOC_P_REL
| task_type=ProcessFlow
| task_name=P_W_SOURCE
Stage 2: Opening Task
declare
ERROR at line 1:
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "OWB_RTR.WB_RT_API_EXEC", line 17
ORA-06512: at "OWB_RTR.WB_RT_API_EXEC", line 137
ORA-06512: at "OWB_RTR.WB_RT_API_EXEC", line 164
ORA-06512: at line 205
Thanks in advance.
VinayHi Kamal and kanakam kolla,
This is just to let you know that,I solved my problem little differently by creating a new location and deployed the process flow.Now my process flow is working fine when i call from the shell script.What i see is that, it does not update properly when we update and redeploy the process flow.So far this is the work arround i could think off and i succesfully tested this.
Thank you Kamal and kanakam kolla,for giving a thought towards my problem.
Thanks
Vinay -
Table name where all the SAP Script names are stored
Hi Gurus,
Can i know the table name where all the SAP Script names are stored in SAP Database.
Thanks in advance,
Shyam.Yes TNAPR is the table which contains sapscipts name and print program names.
Step:1: Goto to the Table TNAPR using SE11
Step:2: Get the Contents of the Table(CNTRLSHIFTF10)
Step:3: On the Table Content Selection Screen, Type the driver program name in the field PGNAM and execute(F8).
Step:4: FONAM field of the result display contains the SAPScript Name for our driver program.
Regards,
Lalit Mohan Gupta. -
Where is the tool script on photoshop ?
Where is the tool "script" in photoshop. I had this in an old version.
I am not familiar with a Photoshop Script named "tool" so I assume this is not part of the default installation.
So you probably need to copy it into the appropriate Scripts-folder. -
URGENT: Where are the upgrade scripts for Tier1 ?
I found the upgrade scripts for 3.0.6/3.0.7 to 3.0.8 for Windows NT and Solaris here on Technet, but where are the upgrade scripts for the Tier 1 platforms ? I urgently need the ugrade script for Tru64. Please help.
Sorry for the confusion - the page should be updated very
shortly. In the meantime, you can download the 3.0.6/3.0.7/3.0.8
to 3.0.9 scripts for NT/2000 at:
http://download.oracle.com/otn/nt/portal/p1831355_309_WINNT.zip
and 3.0.6/3.0.7/3.0.8 to 3.0.9 scripts for UNIX at:
http://download.oracle.com/otn/solaris/portal/p1831348_309_UNIX.z
ip
Note that these are the same scripts that are accessible from
Metalink (NT/2000 - Patch:1831355) and (UNIX - Patch:1831348) -
Do the shell script have to login into Oracle Apps
I am calling the Document Processor Java API from a shell script. The problem I have that its unable to find the
xdo://PO.POXPRPOLXMLRTF.en.US/?getSource=true
file within the control file.
Is this because somewhere a shell variable needs to be set, or a login need to be made into the Oracle Apps, so this template stored in XML Publisher is accessible.
Please advise!Another things you can do is
begin
tmp_res := apps.fnd_web_sec.CHANGE_PASSWORD('TESTUSER','changeme',false);
update fnd_user set password_date = null where user_name = 'TESTUSER'';
end;
Once you do this, when the TESTUSER logs in with the password=changeme, he/she will be redirected to the change password page.
Hope this helps,
Sandeep Gandhi -
Calling the shell scripts written in Apps Server via DBMS_Schedueler
Hi All,
I am new to DBMS Shceduler.
I had written shell scripts in Application Server(Not in Database Server).
Is any one can advice me whether these shell scripts can be called via DBMS SCHEDULER?
Thanks in Advance
Regards
A.GopalYes.
Generally a Scheduler will have 3 parts, a Schedule, a Program and a Job. The parameter "program_type" in "Program" that can have these values 'PLSQL_BLOCK', 'STORED_PROCEDURE','EXECUTABLE'. The "EXECUTABLE" setting allows you to call a script as you request.
Schedule Example
begin
dbms_scheduler.create_schedule
(schedule_name => 'DAILY_AT_4PM',
start_date=> trunc(sysdate)+18/24,
repeat_interval=> 'freq=daily;byhour=16;byminute=0;bysecond=0',
comments=>' Run at 4pm every day');
end;You can setup and reuse something like the above for a job you want to run daily at 4PM
You can check schedules by running some SQL like this :
select schedule_name, schedule_type, start_date, repeat_interval from dba_scheduler_schedules where owner = 'SCOTT';
Program Example
BEGIN
DBMS_SCHEDULER.CREATE_PROGRAM (
program_name => 'MY_SAVED_PROGRAM1',
program_action => '/usr/local/bin/date',
program_type => 'EXECUTABLE',
comments => 'My comments here');
END;
/You can check Programs by running some SQL like this :
SELECT owner, program_name, enabled FROM dba_scheduler_programs where owner = 'SCOTT';
Job Example
begin
dbms_scheduler.create_job
(job_name => 'JOB_EXAMPLE',
program_name=> 'MY_SAVED_PROGRAM1',
schedule_name=>'DAILY_AT_4PM',
enabled=>true,
auto_drop=>false,
comments=>'Job to run date');
end;You can check Jobs by running some SQL like this :
SELECT owner, job_name, enabled FROM dba_scheduler_jobs where owner = 'SCOTT';
The forum also has its own section for this which you can find here :
Scheduler
Best Regards
mseberg -
Where does the MySQL script go within Muse to allow contact forms to work?
After having no problem with contact forms they've stopped working with the latest release?
I use a third party host/email service (not BC) and need to resolve this for myself and a clients website.
I've used the /scripts/form_check.php and only the MySQL has a cross against it, so I created a database via my hosting company. But nothing improved, I contacted their support department and they suggest adding the MySQL Script to the site - but how and where?You can't. That's the short answer.
Muse and BC don't support php or MySQL. So external databases etc. won't work unless you're clever enough to create a really nifty web app (which requires BC hosting, I understand), and even that, I'm not sure would enable you to integrate 3rd party MySQL databases... I'm not clever enough, so I don't know! :P
What I do know is all you should need to do is build the contact form in either Muse or BC and either use a BC database (if you opt to host the site with BC and on the Marketing or above plan) or simply tell the form to send the submitted info to your client's e-mail address.
That's all done either in Muse if you build the form with Muse, or in BC if not.
So since you say you're hosting with a third party, my suggestion is the simplest option; build the form in Muse and in the options for the form, tell it to e-mail submissions to your client's address. Should be that straight forward really... No need to fiddle.
(Although, if you're looking to compile a database of form submissions, then that may have to be done manually, or hard coding on the server side might need to be done.... Again, out of my league!)
If you've already tried the simple Muse form approach then I apologise if I've insulted your intelligence, and I'd put it down to the latest version of Muse being fairly buggy. I'm still waiting for a response to my issues with publishing to BC, which at the moment means I can't commit to delivery timeframes and could lose out on business as a result...
I think a lot of us are feeling the sting at the moment with some of these bugs, so all I can say on that front is to hang in there and keep hoping someone far cleverer than me will respond! :) -
Hello
from
ADOBE INDESIGN CS6
SCRIPTING GUIDE: APPLESCRIPT
there is a reference to complete sample scripts used in the book.
A zip archive of all of the scripts shown in this document is available at the InDesign scripting home page,
at: http://www.adobe.com/products/indesign/scripting/index.html. After you have downloaded and
expanded the archive, move the folders corresponding to the scripting language(s) of your choice into the
Scripts Panel folder inside the Scripts folder in your InDesign folder. At that point, you can run the scripts
from the Scripts panel inside InDesign.
The embedded link does NOT work.
I have called 3 times, to the help desk, and no one can tell me why this is true.
Nor can anyone tell me where I can get this archive.
I can not find it anywhere on the Adobe site.
Could someone please point me to this archive.
Thank you so much in advance for any help you can give.
Mike@Mike – hmm, it took me just three minutes to track down the samples:
http://www.adobe.com/devnet/indesign/sdk/eula_cs6.html
The file is a dmg:
Adobe_InDesign_CS6_Scripting_SDK_413_Mac.dmg
Here the contents revealed:
Uwe -
Where does the startup script go?
Have a MacBook pro from my work. On startup the Mac automaticly statup network disks and a wallpaper from the network.
How does I turn this off? Before it where with a statup script but it does not be where it where before.Got it working. Its a startup programm what did make the trick. The new program is I need it to print here. It also setup a (ugly) wallpaper on my back and that is the part I only want to remove. Got any tricks of doing that?
-
Hi,
i am working on supporting side for a migrated project.My application is an ASO.
As i have to execute the MaxL scripts in Unix using shell scripting.
Can any one help me out in writing and executing the scripts in Putty server.
it is very apreciable if i get response soon to my id [email protected]
Thanks and waiting for reply.
SrinivasWe are using Essbase on UNIX (AIX) too. Generally speaking, I always create 2 files when I want to execute a MaxL script on our UNIX server:
1) a shell script, eg. proc.sh, that contains "essmsh -l <user> <password> proc.msh".
The proc.sh file can be edited using the standard UNIS editor "vi" and needs to be executable (the "x" bit needs to be set).
2) the MaxL script, eg. proc.msh, that contains the MaxL statements to be executed on Essbase
Hope this helps. -
Where is the action script?
I'm new to Flash. I've an animated movie clip that I wanna
duplicate. The movieclip is clickable and when it is clicked, the
Movie goes to a specific frame. I wanna duplicate it but change the
frame number to a new one. The problem is I can't find the action
script code associated with this movie clip :( right click then
actions gives nothing, I tried to edit it but I can see no actions
as well :( Is there anyway to get the actionscript associated with
a movie clip?
Thank youif its AS3, actions are no longer applied directly to the
movie clip. They will most likely exist in the first frame of the
time line (click the frame, then open the actions window) or as an
external .as file. (less likely for a simple movie)
Try to find a frame on your timeline with a small 'a' in it
and use the actions window to look at it and make whatever changes
you need. -
Where is the virtual images directory for an ORACLEXE HTMLDB installation?
Hi,
I've already got a standalone installation of HTMLDB which has an /images/ directory on my file server containing all gifs/themes/templates/css files etc. I've created an application that I'm going to use for my business and I've changed some of the underlying giff's and css files.
On another machine I've just installed Oracle Express Edition (as it's free for commercial use) which has an integrated HTMLDB environment, that is the same as the standalone one as far as I can tell, except that it does not appear to have an /images/ directory stored on the file system??
I've done a complete search and nothing is found. If I type http://127.0.0.1:8080/i/ into my web browser all the files and directories are displayed! Does any one know the location of these files or how the HTTP listener is translating /i/?
I need to mod these existing files in order to correctly display my business application from my other standalone installation of htmldb.
Any help would be greatly appreciated!
KevHi Kev,
you can find detailed instructions here: http://daust.blogspot.com/2006/03/where-are-images-of-application.html
I'll update the instructions if you have more questions,
~Dietmar. -
Where are the Perl Scripts?
I have been reading the doc on Maintaining Security Monitor since having my issues. I noticed several mentions of perl scripts such as "PruneDefault.pl" I search the HD where VMS is installed and I can't locate this script or others mentioned in the doc.
http://www.cisco.com/univercd/cc/td/doc/product/rtrmgmt/cw2000/mon_sec/secmon12/ug/ch07.htm
idsmdc.log
idsmdc.dbYou still haven't mentioned what version of IPS MC software you're running. The URL above references the 1.2 version of the IDS MC.
Maybe you are looking for
-
Finally I have my MySQL JDBC driver working. As I'm starting to developp Nokia applications, I had Forte for Java installed, J Wireless stuff and many others. Too much, nothing was working! I've uninstalled everything, then re-downloaded SDK2 and ins
-
Default username and password for acs 3.2.3
Hi All What is the default username and password to login to a newly built ACS Server V3.3.2 ? Thanks in advanced. Darren
-
I got a year subscription to CC and then i went to download some of the programs and now it asks for a serial number, i didn't get any serial numbers from adobe and i thought they would just work when i signed in with my adobe id? am i supposed to ha
-
Bluetooth keyboard connected to MacBook Pro but not typing
Just bought the new MacBook Pro and love it. I've got my bluetooth wireless trackpad connected and working fine. Unfortunately, my bluetooth wireless keyboard is connecting, but not typing. How can I troubleshoot this?
-
Why plugin/addon concept for Runtime Shared Libraries not implemented in Flex?
Hi All, I am posting my refined query here in continuation to my post Fundamental and crucial drawback with Flex in Flex India Community as my last refined query was left unanswered though I feel there is a definite sense of purpose to it. Why plugin