Passing variables from DM to logic script problem (REPLACEPARAM)
Dear All,
I would like to send variables from data manager to a logic script. The script copies values from an account to an other. If I hardcode two accounts in the script, it works fine, but I want to pass these two accounts dynamically from data manager to the script.
My advanced script in DM looks as follows:
PROMPT(SELECTINPUT,%ENTITY_M%,,"Select entity:","ENTITY_DIM")
PROMPT(SELECTINPUT,%SOURCE%,,"Select source account:","ACCOUNT_DIM")
PROMPT(SELECTINPUT,%TARGET%,,"Select target account:","ACCOUNT_DIM")
INFO(%EQU%,=)
INFO(%TAB%,;)
TASK(PROCESS_CHAIN_RUNL,TAB,%TAB%)
TASK(PROCESS_CHAIN_RUNL,EQU,%EQU%)
TASK(PROCESS_CHAIN_RUNL,SUSER,%USER%)
TASK(PROCESS_CHAIN_RUNL,SAPPSET,%APPSET%)
TASK(PROCESS_CHAIN_RUNL,SAPP,%APP%)
TASK(PROCESS_CHAIN_RUNL,SELECTION,%ENTITY_M%)
TASK(PROCESS_CHAIN_RUNL,LOGICFILENAME,ACCOUNT_COPY_LOGIC.LGF)
TASK(PROCESS_CHAIN_RUNL,MEMBERSELECTION,SOURCE%EQU%%SOURCE%%TAB% TARGET%EQU%%TARGET%)
In the logic script, I'm using $SOURCE$ and $TARGET$ as variables, but it seems that only the first of them gets the value from DM, the other one not, and I always get an error message:
Member "$TARGET$" not exist
The second variable doesn't seem to get the value. If I use only one variable, either SOURCE or TARGET, it works fine...
...and I also tried to replace the MEMBERSELECTION statement with a REPLACEPARAM statement:
TASK(PROCESS_CHAIN_RUNL,REPLACEPARAM,SOURCE%EQU%%SOURCE%%TAB% TARGET%EQU%%TARGET%)
This way I got an other error message, saying: "Member .../PrivatePublications/user not exist"
Do you have any idea? How to pass two user selected parameters to a logic script?
Thanks for your help,
A.
Hi CsernusAttila
You cannot use ACCOUNT_DIM with promp SELECT and variable $SOURCE$ because it only works with variable ACCOUNT_SET in your script logic.
instead of you can use TEXT
PROMPT(TEXT,%,ENTITY_M%%,"Select Entity",)
PROMPT(TEXT,%,SOURCE%%,"Select Source",)
PROMPT(TEXT,%,TARGET%%,"Select Target",)
INFO(%EQU%,=)
INFO(%TAB%,;)
TASK(PROCESS_CHAIN_RUNL,TAB,%TAB%)
TASK(PROCESS_CHAIN_RUNL,EQU,%EQU%)
TASK(PROCESS_CHAIN_RUNL,SUSER,%USER%)
TASK(PROCESS_CHAIN_RUNL,SAPPSET,%APPSET%)
TASK(PROCESS_CHAIN_RUNL,SAPP,%APP%)
TASK(PROCESS_CHAIN_RUNL,SELECTION,%SELECTION%)
TASK(PROCESS_CHAIN_RUNL,LOGICFILENAME,ACCOUNT_COPY_LOGIC.LGF)
TASK(PROCESS_CHAIN_RUNL,REPLACEPARAM,SOURCE%EQU%%SOURCE%%TAB% TARGET%EQU%%TARGET%)
or you can modify your script like this
*XDIM_MEMBERSET ACCOUNT=%ACCOUNT_SET%
*XDIM_MEMBERSET ENTITY=%ENTITY_SET%
And your Prompt like this
PROMPT(SELECTINPUT,,,,"%ACCOUNT_DIM%,%ENTITY_DIM%,")
TASK(PROCESS_CHAIN_RUNL,TAB,%TAB%)
TASK(PROCESS_CHAIN_RUNL,EQU,%EQU%)
TASK(PROCESS_CHAIN_RUNL,SUSER,%USER%)
TASK(PROCESS_CHAIN_RUNL,SAPPSET,%APPSET%)
TASK(PROCESS_CHAIN_RUNL,SAPP,%APP%)
TASK(PROCESS_CHAIN_RUNL,SELECTION,%SELECTION%)
TASK(PROCESS_CHAIN_RUNL,LOGICFILENAME,ACCOUNT_COPY_LOGIC.LGF
I hope it helps
Regards!!
Similar Messages
-
Passing variable from sql to shell script
Usually we can pass arguments from shell script to the sql that us called inside the shell script. But I also want to do the reverse. I have the location of my backup path in a table. I want to run the rman script (shell), read this parameter from the table and use this to construct the "format" path in rman. Anyone has any ideas about this. Thanks.
To achieve getting the modified value from the table everytime the job runs, I encapsulated this in another job.
BEGIN
DBMS_SCHEDULER.CREATE_JOB(
JOB_NAME => 'TEST_LOGS_MAIN',
JOB_TYPE => 'PLSQL_BLOCK',
JOB_ACTION => 'declare
v_aname varchar2(32);
begin
select aname into v_aname from attr where attrid = 3;
DBMS_SCHEDULER.CREATE_JOB(
JOB_NAME => ''TEST_LOGS'',
JOB_TYPE => ''EXECUTABLE'',
JOB_ACTION => ''/opt/sql/testy.sh'',
number_of_arguments => 1,
COMMENTS => ''TEST'');
dbms_scheduler.set_job_argument_value(''TEST_LOGS'',1,v_aname);
dbms_scheduler.enable(''TEST_LOGS'');
end;',
REPEAT_INTERVAL => 'FREQ=MINUTELY',
ENABLED => TRUE);
END;
/ -
Pass variable from apex to shell script
Hi,
i am able to use apex button to run a db scheduler job and use the the job to run an OS bash script, but don't know how to pass an variable to the script from apex.Hi,
Thansk for the reply.
My scenario is
1. Apex page 1: Store List Report, click the store you want to process, the selected store id and store name will be passed to apex page 2 automatically.
2. Apex page 2: Show the store ID and Store Name, once confirm click a button on the screen. I already created dynamic action of the button to run a bash script in OS via dbms_scheduler.
My issue is i don't know how to get the store id and pass it to the bash script through dbms_scheduler.
Regards
Lion -
Passing variables from shell script to separate sqlplus script
Hi, I am having issues passing variables to a separate sqlplus script invoked by the shell script, e.g.
#!/bin/sh
DB_NAME=TEST
PWD1=PA55W0rd
echo exit | sqlplus / as sysdba @${DB_NAME}.sql ${DB_NAME} $PWD1 >> ${DB_NAME}.sql
exit 0
The script picks up the $DB_NAME variable fine, and therefore invokes the required sql script.
However, when I pass the variable $PWD1 to the sql script I get an error.
The script creates a database link:
create or replace procedure new.link
is
begin
execute immediate 'create database link TEST
connect to TESTSCH identified by '$PWD1'
using ''TEST''';
end;
exec new.link;
output is:
ERROR at line 1:
ORA-00911: invalid character
ORA-06512: at "NEW.LINK", line 4
ORA-06512: at line 1
any help appreciated!
Edited by: 969765 on Apr 5, 2013 4:24 AM969765 wrote:
that is a pretty unhelpful comment, this is actually my LAST resort I have looked up all the documentation etc.This is what I did...
I went to the documentation:
http://www.oracle.com/pls/db112/homepage
I searched for "sqlplus" which gave me this documentation (under "SQL*plus program syntax")...
http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_three.htm#i1169374
I read the syntax:
SQLPLUS [ [Options] [Logon|/NOLOG] [Start] ]and the subsequent information:
>
where Start has the following syntax:
@{url|file_name[.ext]} [arg ...]and "Start" was hyperlinked, so I clicked on it, which took me to the section...
>
Start
@} [arg ...]
Specifies the name of a script and arguments to run. The script can be called from the local file system or from a web server.
SQL*Plus passes the arguments to the script as if executing the file using the SQL*Plus START command. If no file suffix (file extension) is specified, the suffix defined by the SET SUFFIX command is used. The default suffix is .sql.
See the START command for more information.
>
and here the "START" was hyperlinked, so I clicked on that...
and hey presto, I ended up here:
http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve044.htm#BACJJHDA
... where the arguments are described...
>
arg ...
Data items you wish to pass to parameters in the script. If you enter one or more arguments, SQL*Plus substitutes the values into the parameters (&1, &2, and so forth) in the script. The first argument replaces each occurrence of &1, the second replaces each occurrence of &2, and so on.
>
... clearly explaining that SQL*Plus substitutes the substitution variables &1, &2 etc. in the script with the passed in arguments.
Your script was including a Unix style substitution, not an SQL*Plus script substitution, so that's seems to be the most likely cause of your problem.
And still you haven't come back to say whether it's worked for you or not... leaving others guessing as to whether you still need help. -
Passing variables from AS3 to PHP
Hi there
I am having some trouble in passing variables from AS3 to PHP. I am using flash and php both in the same file [try.php].
I've stuck with this for two days.. Here's what I have done. Please help!!!
header.fla [Actionscript in the timeline]
stop();
import flash.events.Event;
import flash.display.Sprite;
import flash.net.*;
var url:String = "http://localhost/0000/try.php";
var req:URLRequest = new URLRequest(url);
var loader:URLLoader = new URLLoader();
var variables:URLVariables = new URLVariables();
send_btn.addEventListener(MouseEvent.CLICK, sendForm);
function sendForm(evt:MouseEvent):void
// add the variables to our URLVariables
variables.asd = "value";
// send data via post
req.method = URLRequestMethod.POST;
req.data = variables;
loader.dataFormat = URLLoaderDataFormat.TEXT;
// add listener
loader.addEventListener(Event.COMPLETE, onLoaded);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
//send data
loader.load(req);
function onLoaded(evt:Event):void
var result_data:String = String(loader.data);
if (result_data)
trace(result_data);
else if (!result_data)
trace("error");
function ioErrorHandler(event:IOErrorEvent):void
trace("ioErrorHandler: " + event);
try.php
<body>
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="563" height="280">
<param name="movie" value="header.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="../Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="header.swf" width="563" height="280">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="../Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<?php
if($_POST['asd'])
echo "value of var1 is <b>".$_POST['asd']."</b>";
else
echo "bad luck";
?>
</body>
BIG THANKS!!the problem is nothing your showed. did you see a security warning that you ignored?
to test, if that's the problem go here and adjust your security settings: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.ht ml
if that fails, upload your files to a server and confirm everything works. then start working on your local configuration. -
Pass variables to child via C# script task ?
I don't want to use package configurations to pass variables from Parent to child package. I'd prefer to pass the variables to child, from a C# script task in the parent package. Can this be done ? Here is the pseudocode for what I hope to do -
//code in script task of parent package
Main(){
Object parentObj = SSIS.ParentPackage.myObject;
String parentStr = SSIS.ParentPackage.myString;
callChildPackage(parentObj, parentStr);You have four choices for this:
Use Parent-Child variable configurations
Place the value in a variable in the parent package, which can be referenced from the child package, when run with an Execute Package Task. (http://agilebi.com/jwelch/2009/10/03/passing-an-object-from-a-parent-package-to-a-child)
Take over the execution of the child package entirely executing the package from inside your C# script task.
Use something like the Task Factory Advanced Execute Package task. (Full Disclosure: I work for Pragmatic Works)
Item 3 is probably closest to what you want. You'd need to use the Package.Execute method to run the child package yourself. The advantage of doing that is you can set child package variables explicitly before executing the package.
John Welch | www.pragmaticworks.com | www.agilebi.com | ssisUnit.codeplex.com -
Passing variables from one swf to another
I am facing problem to pass variable from one swf to another.
I am using loadMovie to load another swf. how can I pass a variable
value to another swf. Can anyone help me plz? It is somewhat
urgent.
thanx in advance.first of all:
this is the Flash Media Server and your problem is not
related to FMS....
second thing related to the "somewhat urgent" :
we, users on this forum, are not there to do your job... so
calm down otherwise no people will answer your question. This forum
is a free support forum that community of Flash developer use to
learn tricks and to solve problems.
Possibles solutions:
If the two swf are seperate you can use LocalConnection to
establish a connection between different swf.
If you load a second swf into the first one you can interact
like a standard movieClip(only if there from the same domain or if
you a policy file on the other server)
You can use SetVariable(via Javascript) to modify a root
variable on the other swf and check with an _root.onEnterFrame to
see if the variable had changed in the second swf.
* MovieClipLoader will do a better job, in your specify case,
than the loadMovie. Use the onLoadInit event to see when the swf is
really totaly loaded into the first one otherwise you will have
timing issues.
My final answer(lol) is the solution 2 with the
notice(*) -
Passing variables from php to flash and the opposite
Hi guys, im trying weeks now to solve this problem but nothing yet
If someone could just tell me how to pass variables from flash to php and the opposite i would be thankful!!! Please help!I have recently had to learn this, so this may not be the best way but it worked for me
I suggest looking at the code below stripping out everything you don't need (e.g. the databse stuff) and just get a simple string going back and forward
have a go and post any problems here and I'll try and help
in flash i have
private function getBalanceAndXP():void
var request:URLRequest = new URLRequest("utils.php");
request.method = URLRequestMethod.POST;
var variables:URLVariables = new URLVariables();
variables.func = "getBalance";
variables.fbid = userID;
request.data = variables;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, onBalanceComplete);
loader.load(request);
private function onBalanceComplete(e:Event):void
var loader:URLLoader = e.target as URLLoader;
loader.removeEventListener(Event.COMPLETE, onBalanceComplete);
var variables:URLVariables = new URLVariables(loader.data);
_balance = parseInt(variables.balance); // class variable
_experience = parseInt(variables.experience); // class variable
public function setBalanceAndXP(balance:int, experience:int):void
_balance = balance;
_experience = experience;
var request:URLRequest = new URLRequest("utils.php");
request.method = URLRequestMethod.POST;
var variables:URLVariables = new URLVariables();
variables.func = "setBalance";
variables.fbid = userID;
variables.balance = _balance;
variables.experience = _experience;
request.data = variables;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.load(request);
and then I have my php file
<?php
$func = $_POST["func"];
$fbid = $_POST["fbid"];
$balance = $_POST["balance"];
$experience = $_POST["experience"];
$numVariables = 0;
$link = mysql_connect("localhost","username","password");
mysql_select_db("databaseName");
if ($func == "getBalance")
getBalance($fbid);
else if ($func == "setBalance")
setBalance($fbid, $balance, $experience);
mysql_close($link);
function getBalance($fbid)
$query = "SELECT balance, experience FROM tableName WHERE fbid = '".$fbid."'";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
writeVariable("balance", $row[0]);
writeVariable("experience", $row[1]);
function setBalance($fbid, $balance, $experience)
$query = "UPDATE tableName SET balance = ".$balance.", experience = ".$experience." WHERE fbid ='".$fbid."'";
mysql_query($query);
function writeVariable( $name, $value )
global $numVariables;
if ( $numVariables > 0 )
echo "&";
echo $name . "=" . urlencode($value);
$numVariables++;
?> -
Passing variables from Applescript to bash
Hello,
I'm trying to pass variables from Applescript to bash using the following code
#!/bin/bash
osascript <<EOF
tell application "SystemUIServer"
set username to text returned of (display dialog "Enter your name" with icon caution default answer "" buttons{"Continue"})
set macname to text returned of (display dialog "Enter name of your Mac" with icon caution default answer "" buttons{"Continue"})
do shell script "export USERNAME=" & quoted form of username & " && export MACNAME=" & quoted form of macname
end tell
EOF
echo "USERNAME is $USERNAME, MACNAME is $MACNAME"
but no luck
Mac-mini:Downloads admin$./new.command
USERNAME is , MACNAME is
Any help would be greatly appreciated.I just realized you are returning 2 variables. That can still be handled by echoing/printing the values, you just have to parse the output, or use other tricks.
VALUES=( $(osascript -e '...') )
This would make VALUES an array, with each array element containing one space separate return value from osascript
USERNAME=${VALUES[0]}
MACNAME=${VALUES[1]}
If USERNAME or MACNAME could have spaces in them, you would need to use some kind of separator character. For example if you use @ as the separator you could do something like:
VALUES=$(osascript -e '...')
USERNAME=${VALUES%@*}
MACNAME=${VALUES#*@}
which will %@* will delete everything starting with the @ til the end of the string, and #*@ will delete everything from the beginning of the upto and including the @.
Another trick is to have the return values be properly formed shell variable assignments such as
print "USERNAME='your user name' MACNAME='Your Mac Name' " -- I'm making this up as I do not really know Applescript, so you will have to figure out how to get Applescript to print something that looks like
USERNAME='your user name' MACNAME='Your Mac Name'
In your shell script you have code that looks like:
VALUES=$(osascript -e '...')
eval $VALUES
The eval will execute whatever is stored in $VALUES, and if that happens to look exactly like shell variable assignments, you get the variables created in the current shell context, where can use them. -
OBIEE 11g How to pass variable from one prompt to another prompt in dashboard page.
How to pass variable from one prompt to another prompt in dashboard page.
I have two prompt in dashboard page as below.
Reporttype
prompt: values(Accounting, Operational) Note: values stored as
presentation variable and they are not coming from table.
Date prompt values (Account_date, Operation_date)
Note:values are coming from dim_date table.
Now the task is When user select First
Prompt value “Accounting” Then in the
second prompt should display only Accounting_dates , if user select “operational”
and it should display only operation_dates in second prompt.
In order to solve this issue I made the
first prompt “Reporttype” values(Accounting, Operational) as presentation
values (custom specific values) and default presentation value is accounting.
In second prompt Date are coming from
dim_date table and I selected Sql results as shown below.
SELECT case when '@{Reporttype}'='Accounting'
then "Dates (Receipts)"."Acct Year"
else "Dates (Receipts)"."Ops
Year" End FROM "Receipts"
Issue: Presentation variable value is not
changing in sql when user select “operation” and second prompt always shows
acct year in second prompt.
For testing pupose I kept this presentation
variable in text object of dashboard and values are changing there, but not in
second prompt sql.
Please suggest the solution.You will want to use the MoveClipLoader class (using its loadClip() and addListener() methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it. You can create an empty movieclip to load the swf into, and in that way the loaded file can be targeted using the empty movieclip instance name.
-
Is it possible to pass variables from Tidal to the Peoplesoft run controls?
Does anyoen know
•1) Is it possible to pass variables from Tidal to the Peoplesoft run control page such as current date?
An example would be updating run control parameters for a PSQUERY.
•a) From date
•b) To date
•c) Business units
Thanks,
JayEdit the job - go to Run Controls Parameters tab - select the param you want in the Override column then click on the Variables button on the bottom and select the variable you want
-
Passing variable from one JSP to another
Hi....
I am working on customizing Oracle Application(istore).
I need to pass variable from 1 JSP to another.
JSP 1 contains the following line of code:
<INPUT type="HIDDEN" name="soldtoCustPartyName" value="<%=soldtoCustPartyName%>">
How can I pass this to another JSP Page. The other JSP should take the 'soldtoCustPartyName' and find out the primary address country.
So please help me in getting variable passed from 1st JSP to next.
By default, 1st JSP is not fwded to 2nd JSP.
This is very very urgent...Please help.....When you push the submit button on jsp1 - it goes to jsp2?
ie
// in jsp1.jsp
<form action="jsp2.jsp">
<INPUT type="HIDDEN" name="soldtoCustPartyName" value="<%=soldtoCustPartyName%>">
<input type="submit">
</form>
//Then in jsp2.jsp all you need is
request.getParameter("soldtoCustPartyName");This will pick up the value that is coming from the hidden field on jsp1 -
Passing variables from Report to Form
Hi, I need pass a couple of variables from the REPORT to two fields in the FORM for save in a table. Somebody knows how do I do this?. Any suggestions?
Thanks a lot!
I think that this situation is different that pass variables from FORM to REPORT.You need to use a Link component to your Form that you then attach to one of the data columns in the Report. When you edit the link in the report, you can specify the fields to pass.
-
[SOLVED] Pass Environment variables from PKGBUILD to .INSTALL script
Hi everyone,
I am trying to modify the grub2-efi-bzr (http://aur.archlinux.org/packages.php?ID=38369) package making some changes in the PKGBUILD and the post-install script. I want to pass few environment variables from the PKGBUILD to the install script. How do I do that?
Some code from the PKGBUILD
_bzrtrunk="lp:grub/grub2" # GRUB2 BZR Main Trunk
# _bzrtrunk="lp:~skodabenz/grub/grub2-bzr-exp" # GRUB2 BZR Experimental Branch
_bzrmod="grub2"
if [ ${_bzrtrunk} = "lp:~skodabenz/grub/grub2-bzr-exp" ]
then
_bzrmod="grub2_exp"
pkgver="exp_${pkgver}"
fi
# grub-extras bzr repo locations
_bzrtrunk_zfs="lp:~skodabenz/grub/grub2-extras-zfs"
_bzrtrunk_lua="lp:~skodabenz/grub/grub2-extras-lua"
if [ "$CARCH" = 'i686' ]
then
_EFI_ARCH=i386
elif [ "$CARCH" = 'x86_64' ]
then
_EFI_ARCH=x86_64
fi
# _EFI_ARCH=x86_64 # Uncomment if you want to override the if condition for _EFI_ARCH above, incase the EFI ARCH does not match the Linux Kernel ARCH.
# $CARCH=x86_64 and _EFI_ARCH=i386 requires gcc-multilib with lib32-glibc installed in the system.
# I do not know about $CARCH=i686 and _EFI_ARCH=x86_64
if [ ${_EFI_ARCH} = "i386" ]
then
pkgver="${pkgver}_x86"
_trns_name="grub2_efi_x86"
elif [ ${_EFI_ARCH} = "x86_64" ]
then
pkgver="${pkgver}_x64"
_trns_name="grub2_efi_x64"
fi
Now the post-install script needs the values of _EFI_ARCH and _trns_name env variables. I do not want to copy the if statements to that script as these are decided at compile time but needed while setting up grub2-efi. This is due to the fact that EFI-ARCH need not match the Linux Kernel ARCH. How do I do that.
Code from the post-install script
${_trns_name}-install --root-directory=/ --no-floppy --recheck --debug
cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/lua.mod /boot/${_trns_name}/
cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/zfs.mod /boot/${_trns_name}/
cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/zfsinfo.mod /boot/${_trns_name}/
cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/unifont.pf2 /boot/${_trns_name}/
cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/ascii.pf2 /boot/${_trns_name}/
${_trns_name}-mkimage --verbose --directory=/usr/lib/${_trns_name}/${_EFI_ARCH}-efi --prefix="" --output=/boot/${_trns_name}/grub2.efi --format=${_EFI_ARCH}-efi ${_EFI_APP_MODULES}
Thank in advance.
Last edited by skodabenz (2010-07-27 15:46:40)falconindy wrote:
Don't rely on %foo% existing -- it won't after the first build and this will prevent the PKGBUILD from being reentrant. I would use something like this (untested):
sed -i "s|^\(_EFI_ARCH\)=.*|\1=${_EFI_ARCH}|; \
s|^\(_trns_name\)=.*|\1=${_trns_name}|; \
s|^\(export _EFI_APP_MODULES\)=.*|\1=${_EFI_APP_MODULES}|" \
${startdir}/grub2-efi-bzr.install
Your code works except for 1 problem in the install script I want
export __EFI_APP_MODULES="${_EFI_APP_MODULES}" (the passed ${_EFI_APP_MODULES} value should again come inside double quotes).
right now
export _EFI_APP_MODULES=ata part_gpt part_msdos fat ntfs ntfscomp ext2 iso9660 udf hfsplus fshelp normal chain linux ls search search_fs_file search_fs_uuid search_label help loopback boot configfile echo efi_gop efi_uga xnu xnu_uuid lvm
which is equivalent to
export _EFI_APP_MODULES=ata
I want
export _EFI_APP_MODULES="ata part_gpt part_msdos fat ntfs ntfscomp ext2 iso9660 udf hfsplus fshelp normal chain linux ls search search_fs_file search_fs_uuid search_label help loopback boot configfile echo efi_gop efi_uga xnu xnu_uuid lvm"
How to do it with sed since sed already uses double quotes? -
How to pass a variable from se38 prog to script.
hi ,
my requirement is for billing.
what i need to do is if kona-zlsch = 'T', then i have to set a flag = 'X'.
i want to know that how i will pass this flag value to my script ?
plz can any one help me.
thanks
SantosiniSAP script:
select the window in which u want to display the varibale.
go to edit->text elements
then goto->change editor
first column select /:
then mention &FLAG&.
main program:
call functions: 1. open_form
2. write_form
3. close_form
Maybe you are looking for
-
Getting new hard disks to show up?
I have installed Solaris 10 to my primary hard disk. The OS is up and running fine as far as I can tell. I have also added two three more hard disks (250GB PATA IDE drives). The BIOS during bootup sees the drives just fine. (Even the Solaris install
-
Script Version of mx:CurrencyValidator
Does anyone know how to use the CurrencyValidator in the Script section of the file? I have the <mx> working properly but it verifies the data out of order. I need to put it at the bottom of the code that is checking the other parameters first. Thank
-
Hi All we are getting the below error when trying to post the transaction MICN : Fiscal year variant T2 is incorrect Message no. F5234 However, i have checked OB29, OMSY, OB37 & OB52 - all are correctly set up... can anyone guide me as to how I can c
-
i am having trouble printing and am only getting part of the document i have no margins set any help??
-
Hi When a create a room with the standard SAP meeting room template i add some memebers with different roles.When ai login as a memeber an error occurs saying 'No connection to groupware server (Invalid RID: No repository manager found: /calendar). R