Re-run a portion of a script
While *run me* will re-run a script from its beginning, is there any way to re-run a portion of a script from a specific line or command?
well, thanks for the star, but I don't see any need to close the conversation just quite yet.
you have a (more or less normal) confusion about what it is, exactly, that a computer does. Computers execute; they don't think. A computer program is just a long series of mathematical operations that are executed sequentially; It will continue to do that until it reaches the end of the calculation or reaches a calculation that can't be performed. It's a programmer's job to anticipate and control all the possible states that the calculation might be in, and to decide what commands get executed in which conditions. it's just like if you're doing math on a hand calculator - if you're doing something that needs trigonometry, then you need to anticipate that you'll need a table of trigonometric values (or a subroutine that calculates trigonometric values, which is basically what the sin and cos keys on your average calculator are), and you get to choose when you use it. the calculator won't do either of those things for you. Programming artifices like loops, conditionals, and subroutines are for the programmer, not the computer - they get used the same way a mathematician will use a ∑ symbol instead of writing out a (possibly infinite) list of things to sum.
if you're writing code that requires user input, then you (the programmer) have to decide what inputs are allowable and what aren't, and you have to create structures that exclude and re-request improper input. if you want something more open ended (or you want something artificial-intelligency that "learns") you need to create structures that keep the the state of the program within a bounded set of states that are functionally executable. You as a programmer have to anticipate and exclude possible undesirable states. If you need to do a long series of calculations to determine whether a user input is proper, then you should set that series in a handler of its own, with proper error checking, and just loop through the request for data and a call to the handler until you have an input that you know you can use. everything you leave to chance is an opening for your program to crash (and remember, a program "crashing" just means that the program didn't do what you expected - it happily made precisely the set of calculations you told it to, and has no idea that it's not doing the right thing).
Similar Messages
-
Getting error while running OIM in built purging script OIM_ReconArch.sh
Getting error while running OIM in built purging script OIM_ReconArch.sh
bash-3.00$ cat Err_Arch_Recon_2012_11_01_15_36_06.log
-- Reconciliation Archival Execution Status
BEGIN OIM_SP_ReconArchival('N','N',200000,'ARCHIVE_SELECT_WITH_CONS_DROP_REC','Both Events','20110101','20111231'); END;
ERROR at line 1:
ORA-00942: table or view does not exist
ORA-06512: at "PREPRD.OIM_SP_RECONARCHIVAL", line 722
ORA-00942: table or view does not exist
ORA-01031: insufficient privileges
ORA-06512: at line 1
Please HelpORA-06512: at "PREPRD.OIM_SP_RECONARCHIVAL", line 722
ORA-00942: table or view does not exist
ORA-01031: insufficient privileges
(1) Check whether the OIM_SP_RECONARCHIVAL table or view exists or not...
(2) If it exists, check whether the DEV_OIM user has enough privilege to view this table or not...
If not, give it all privilege by login as sys as sysdba
GRANT ALL PRIVILEGES TO DEV_OIM;
COMMIT; -
Urgent - How to Run a FM using CATT script tool,
Hi All,
How to Run a FM using CATT script tool,
Thanks in advance,
KSRchoose type as "Function module test" (if you are in release less than 6.4 abap) after entering into t.code SCAT.
Pl. refer to this documentation for creating function module test cases
<a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCATTOL/CACATTOL.pdf">http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCATTOL/CACATTOL.pdf</a>
reward if it helps
Krishna -
RE: Running Escript from a UNIX script
Hi Doug,
Yu can try the following within escript:
(using execcmd to generate an escript script and include to execute the
generated escript)
1) startup escript from a ksh
2) get to the installedPartition level
3) setOutFile yourOutFile
4) showag
5) setOutFile
6) execcmd " yourAwkGrepScript.ksh yourOutFile "
7) include yourGeneratedEscript
yourAwkGrepScript.ksh analyses yourOutFile and finds
the ActivePartition level subagent with the hex number as part of that
subagent name
then generates a new escript script with a fixed name yourGeneratedEscript
I hope this idea will help you to solve your problem.
Evert Nooijen.
-----Original Message-----
From: [email protected]
[SMTP:[email protected]]
Sent: 27 January 1999 15:25
To: [email protected]
Subject: Running Escript from a UNIX script
I'm running a Korn Shell script that uses Escript to navigate down through
an applications sub agents to get to the LoadBalancingRouter agent. Now I
also need to get to the CommMgr agent in the same fashion. The problem I'm
having is that once I get to the InstalledPartition level , I need to get
to the ActivePartition level which requires the hex number as part of the
subagent name. I've figured out a way to get the subagent name using awk &
grep, but haven't been able to do it while I'm in escript. Basically I
need to find the subagent for the installed partition & pass that name to
the findsubagent command. Escript doesn't seem to understand grep or awk??
Does anyone have any ideas or have you done something like this before??
Doug Scurr
HealthPartners
8100 34th Avenue South
Minneapolis, MN 55440-1309
(612)883-7317
<[email protected]>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Escript is pretty dumb, in that it doesn't have any
looping or conditional expressions itself. I drive
escript from a korn shell script also.
Basically, I make two passes when doing things with
escript in cases like this. One pass I send the
commands to get the necessary info out of escript,
and redirect to a file.
Second pass, I awk/grep/whatever the info out of
the temporary file and use it to build another
set of escript commands to do the real work.
[email protected]
Unix Systems Administrator
Sentai Advanced Research Corp.
(780)423-3113 ext 42
-----Original Message-----
From: [email protected]
<[email protected]>
To: [email protected] <[email protected]>
Date: Wednesday, January 27, 1999 8:35 AM
Subject: Running Escript from a UNIX script
I'm running a Korn Shell script that uses Escript to navigate down through
an applications sub agents to get to the LoadBalancingRouter agent. Now I
also need to get to the CommMgr agent in the same fashion. The problem I'm
having is that once I get to the InstalledPartition level , I need to getto
the ActivePartition level which requires the hex number as part of the
subagent name. I've figured out a way to get the subagent name using awk &
grep, but haven't been able to do it while I'm in escript. Basically I need
to find the subagent for the installed partition & pass that name to the
findsubagent command. Escript doesn't seem to understand grep or awk??
Does anyone have any ideas or have you done something like this before??
Doug Scurr
HealthPartners
8100 34th Avenue South
Minneapolis, MN 55440-1309
(612)883-7317
[email protected] <[email protected]>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
Run a BR or Calc Script within another BR
Is there a way from which I can run one Business Rule/Calculation Script in another Business Rule/Calculation Script (Run one BR/Calc Script within another BR)?
Edited by: 930603 on May 3, 2012 4:44 PMHi,
Do you want to run two BR's parallel y, why you are not going for sequences option, you can divide your rule in parts and run the rules in the sequence you want.
run one Business Rule/Calculation Script in another Business Rule/Calculation Script (Run one BR/Calc Script within another BR)?I don't think so you can call one BR from other, if you want the same might be you have to write CDF for calling the BR/CalcScript within the BR. or you can use Essbase Macro option.(+I am not sure for this option+)
Thanks,
Avneet Singh Bhatia -
Running Escript from a UNIX script
I'm running a Korn Shell script that uses Escript to navigate down through
an applications sub agents to get to the LoadBalancingRouter agent. Now I
also need to get to the CommMgr agent in the same fashion. The problem I'm
having is that once I get to the InstalledPartition level , I need to get to
the ActivePartition level which requires the hex number as part of the
subagent name. I've figured out a way to get the subagent name using awk &
grep, but haven't been able to do it while I'm in escript. Basically I need
to find the subagent for the installed partition & pass that name to the
findsubagent command. Escript doesn't seem to understand grep or awk??
Does anyone have any ideas or have you done something like this before??
Doug Scurr
HealthPartners
8100 34th Avenue South
Minneapolis, MN 55440-1309
(612)883-7317
[email protected] <[email protected]>Escript is pretty dumb, in that it doesn't have any
looping or conditional expressions itself. I drive
escript from a korn shell script also.
Basically, I make two passes when doing things with
escript in cases like this. One pass I send the
commands to get the necessary info out of escript,
and redirect to a file.
Second pass, I awk/grep/whatever the info out of
the temporary file and use it to build another
set of escript commands to do the real work.
[email protected]
Unix Systems Administrator
Sentai Advanced Research Corp.
(780)423-3113 ext 42
-----Original Message-----
From: [email protected]
<[email protected]>
To: [email protected] <[email protected]>
Date: Wednesday, January 27, 1999 8:35 AM
Subject: Running Escript from a UNIX script
I'm running a Korn Shell script that uses Escript to navigate down through
an applications sub agents to get to the LoadBalancingRouter agent. Now I
also need to get to the CommMgr agent in the same fashion. The problem I'm
having is that once I get to the InstalledPartition level , I need to getto
the ActivePartition level which requires the hex number as part of the
subagent name. I've figured out a way to get the subagent name using awk &
grep, but haven't been able to do it while I'm in escript. Basically I need
to find the subagent for the installed partition & pass that name to the
findsubagent command. Escript doesn't seem to understand grep or awk??
Does anyone have any ideas or have you done something like this before??
Doug Scurr
HealthPartners
8100 34th Avenue South
Minneapolis, MN 55440-1309
(612)883-7317
[email protected] <[email protected]>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
Running reports in SCCM: ActiveX Script Error
When I try to run some reports, I authenticate then it throws a Script Error. Error: ActiveX component can't create object: 'Microsoft.XMLDOM'.
This only happens on some reports and it only happens remotely. If I try to run the same reports on the local server, there aren't any issues.Have enabled remote errors?
http://be.enhansoft.com/post/2013/01/16/Enabling-Remote-Errors-in-SQL.aspx
What exactly is the error that your are getting!
http://www.enhansoft.com/ -
How can I run a continuous interactive update script?
Hi,
I've written an interactive update sql statement that will need to be run several times. Typing @f:\folder\file.sql can get time consuming and boring after a couple of times of inputting the data.
Is there an easy way to write a procedure that will run the script until you tell it to stop?
Thanks
JenThe script prompts the user to enter an academic year e.g. 01/02, a student reference number e.g. 20000001, a prior attainment figure, a course suitability figure, an 'other' figure and a baseline figure. These values are updated into the relevant fields using an update statement within the script.
Yes I am using sql+ and have tried using the / function but all that happens is the update statement runs again not the actual @f:\folder\filename.sql;
As for knowing when to quit the script, there would have to be some sort of loop.
Example (Pseudo code)
Prompt user to run the script, answer Y or N
Do
run script
while answer to prompt is Y
I have a feeling that the above loop would have to be written in PL/SQL. -
I am running XP SP3 and FF 3.6.18. I have been having trouble opening PDFs in FF but not in other browsers. FF tells me to update my Adobe PDF plug-in. I click in the FF list to update, go through the procedure and when I click on run I get the following message: "Internet Explorer script error," although I am not running IE and I have no other applications open or running other than Avast anti-virus. The pane gives me two options to the question "Do you want to continue running scripts on this page?": Yes or No. After clicking on either, the pane disappears, but nothing further happens. I have then downloaded the plug-in again, but when trying to run it I get the message: "Only a single instance of this application can run." I have tried downloading the plug-in to a different folder but get the same message. I have also turned off Avast with no change in the above. Now no PDFs open in FF. What to do? Thanks.
Thanks for your response...
I can wait. After all, it was by waiting for the release of the 10h version after the 10e version sabotaged my flash installation, that I was eventually able to at least get Firefox up and running flash again...
It's just frustrating to think that the folks at Adobe can't come up with a better product testing cycle so they are unleashing these problems on end users systems...
I recognize that there may be some sort of issue with my particular system registry. If so, I wish I knew what it was...but flash releases are the only installations I ever have any difficulty with...All of the other software I run updates without failing....sad to say...
Perhaps I will try running a home edition version of secedit (See here)http://support.microsoft.com/kb/313222 instead of the clean or repair install...I'll let you know what I decide and how it works out...
Anyway, thanks for the input.. -
How to load the object library at run time from within the script.
What i am trying to do from my library is that I wanted to load the object library file (.properties) file at run time through the script. I know that open script has a deprecated method "ft.loadObjectLibrary". Is there any other method other than the deprecated one?. Also is there a way that I can unload the library?
Thanks,
SriObject.border.fill.color.value = "255,255,255";
if you want to use rawValue of textfields to insert in there you will have to do
Object.border.fill.color.value = R.rawValue + "," + G.rawValue + "," + B.rawValue -
Is there a way to run an existing PS-JS script using external interface
I have several previously written Photoshop JS scripts which I'd like to run through buttons on PS panels, much like the example for the HelloWorld introduction. I assume that--using external interface--I'll somehow be able to fire off these script files. Is this a correct assumption?
Thanks!Certainly, but not with external interface.
Have a look at the cookbooks. There are examples of how to use the root host object to call directly into extendscript. -
Error while running Business Rules and Calc scripts
We are trying to run calc script in a report and we received the error saying that " An error occured while running the specified cacl script.Check the log for details", we received the similar error when working with Business rules.
This started when we tried to point JVMMODULELOCATION in essbase.cfg to null from its existing link to a java path.
This error persists even after we changed the config file to its original one.
Hyperion 9.3.1
Oracle 10g
Weblogic 9
Solaris 10 64 bit
john , please help. i will provide ytou with the exact error messages.. please tell me what this means ---> This started when we tried to point JVMMODULELOCATION in essbase.cfg to null from its existing link to a java path
what is that JVMMODULELOCATION for??
thankyou,
RcikyHi,
Here is details on what the JVMMODULELOCATION is :- http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/techref.htm
Cheers
John
http://john-goodwin.blogspot.com/ -
I would like to automate part of my workflow that involves opening stacked images as layers in Ps CS5 and running an PS action that composites the layers and processes the image. Something similar to 'Process Collection' in Bridge CS5 only with my own action instead of merge to HDR/Panorama.
Apparently this is possible with Mac 'Automator' - is there anything I can do in Windows? I don't have any experience with writing scripts, but have friends that can help. Can someone tell me if its possible and point me in the right direction please?Sorry but a script can not access Lightroom so your first step isn't possible.
Second step is Lightroom not Photoshop.
Maybe something could be done if you could work out a Photoshop Only workflow. -
Run oracle report through a script
Hi all,
My requirment is to run oracle dev 10.1.2 report (rdf) file though a script and the output pdf file would be generated in a folder without open in browser.
Anybody did this before?
Any help would be highly appreciated.
ThanksHi,
Check this thread, you have an example also.
run a report from PL/SQL
Cheers,
Gouri Sankar -
HOW TO RUN BODS JOB THROUGH UNIX SCRIPT
Dear Experts
Please provide me the way how to call a job by a script .
I have used Export Execution Command as recommended by below links
http://scn.sap.com/docs/DOC-34648
http://scn.sap.com/community/data-services/blog/2012/08/22/sap-bods--running-scheduling-bods-jobs-from-linux-command-line-using-third-party-scheduler
But I am not able to locate .sh file in unix server .
This is required to call a job after completion of parent job.
Thanks
AnupamYou can check the status in "SAP Business Objects Data Services management Console", Below are the steps
Login in SAP Business Objects Data Services management Console
Click on Batch Job
Select the local repository
Then check your Job Execution status from there
For your second query there are two ways one is do the same activity what you have done in DEV.
below are the steps
Login in SAP Business Objects Data Services management Console and export the Jobs using export execution command from batch job
SHELL Scripts will be exported in Job Server Log
Move that SHELL script as per your location
Update the User environment variable same as DEV only difference is SID is changed
Thanks,
Daya
Maybe you are looking for
-
HP Probook 4540s upgrading RAM
Hi, I would like to upgrade my memory (4GBs are not enough in theese days) for probook 4540s Now, I have 1 module with theese specifications: CPU-Z: DIMM # 1 SMBus address 0x52 Memory type DDR3 Module format
-
Sales & Delivery item category
Hi Experts, Sales item category and Delivery item category have same names. My question is whether the delivery item category is the same as sales order item category. Thank you
-
Want o add button to application toolbar of CO12
Hi, I want to add one button to application tool bar of CO12 transaction. Let me know the procedure to achieve the same Thanks in advance, Nag
-
Need help updating camera raw in CS4
I had CS4 installed on a computer that crashed several months ago. I then installed it on my laptop but have not been able to get camera raw to update. When I try to, it says I need to close Bridge and try again, but I don't have Bridge or Photosho
-
Using SAP BusinessObject XI with Safari
I just started using BusinessObjects XI. I access it over the web but have not been able to get the web page to load correctly using Safari or Firefox. If I use a PC and IE it works fine. Could this have something to do with the special version of Ja