Linux script - disable ZEN-Partition
we have found out that we start with the zupdate.sig for activating some
new jobs. But what we need is a 2-3 line script to disable the zen-
partition and activate the windows-partition.
Beat
[email protected] wrote:
> we have found out that we start with the zupdate.sig for activating some
> new jobs. But what we need is a 2-3 line script to disable the zen-
> partition and activate the windows-partition.
puhh.. I would have to dig into this myself.. normaly the lilo.s script
takes care of this.. does this help?
If you have already compiled drivers or have linux.2 please put them on
http://forge.novell.com/modules/xfmo...ect/?zfdimgdrv
Live BootCd and USB Disk from Mike Charles
http://forge.novell.com/modules/xfmod/project/?imagingx
eZie http://forge.novell.com/modules/xfmod/project/?ezie
Marcus Breiden
If you are asked to email me information please change -- to - in my e-mail
address.
The content of this mail is my private and personal opinion.
http://www.edu-magic.net
Similar Messages
-
we have a zen-partition on all PCs. we will disable it, but the policy
does not work. So how can change the linux-scripts so that this partition
will no long be used?
Beat[email protected] wrote:
> we have a zen-partition on all PCs. we will disable it, but the policy
> does not work. So how can change the linux-scripts so that this partition
> will no long be used?
how do you do that?
you could check the runme.s file in /bin and put the part which disables the
linux partition into a imaging script.
If you have already compiled drivers or have linux.2 please put them on
http://forge.novell.com/modules/xfmo...ect/?zfdimgdrv
Live BootCd and USB Disk from Mike Charles
http://forge.novell.com/modules/xfmod/project/?imagingx
eZie http://forge.novell.com/modules/xfmod/project/?ezie
Marcus Breiden
If you are asked to email me information please change -- to - in my e-mail
address.
The content of this mail is my private and personal opinion.
http://www.edu-magic.net -
How to avoid creation of ^M in linux scripts
Hi All
How to avoid creation of ^M in linux scripts
RegardsIf you keep your scripts on linux, there will be no ^M's.
If you use FTP, set transfer type to ASCII. (ascii command)
If you have scripts that show ^M's, you can get rid of them using vi(m) command:
1,$s/ <CTRL>v <CTRL>m //
(where <CTRL>-v means holding the CTRL button and pressing the "v" button, same for "m")
!! Please mind that, whilst it doesn't give any errors most of the time, it can give very strange and unexpected errors in certain cases.
It did give errors on linux+oracle 9 listener (!!!) -
Linux script for PGP encryption
Hello,
We are trying to do PGP encryption by giving the OS command in the File adapter. Can somebody provide me the exact linux script that we should use to do PGP encryption?
Note: We have XI-3.0 on LINUX.
Promise points for helpful answers.
Regards,
Raji.Hi Rajashree
PGP Encryption is used to support the transmission of sensitive data to / from third party systems via XI.
Adapter modules are developed to encrypt the file using PGP.
We had a similar requirement where we used PGP encryption.The module was developed using Cryptix OpenPGP which is a Java implementation of the OpenPGP standard.When the module is called in the adapter, it uses the PGP key provided by the party that will receive the encrypted message. This module should be called prior to calling the Sap adapter
Logic Flow/Processing:
1.Read the XML payload and message for getting the needed data.
2.Read the key to be used in the encryption and log the key to be used and the beginning of the encryption.
3.Call the PGP encryption and compression method.
4.Log whether encryption has been successful.
5.Set as payload the message content encrypted, and the principal data.
6.If any error occurs, logs an exception in PGP adapter module and the error reason.
7.Return the message.
Go through This links
Is there any FTP API available from SAP?
Send Text file to FTP in binary mode with PGP encryption
http://www.webmethods.com/meta/default/folder/0000007429
Converting IDOC to XML
XI implementation
http://www1.webmethods.com/PDF/webMethods_for_SAP-wp.pdf
Current versions found at http://www.cryptix.org and http://www.bouncycastle.org.
http://www.bouncycastle.org/documentation.html
If you want to use the unix script on windows then you need cygwin. Take the shell executable and cygwin.dll and copy them to another machine and try out.
Else you write an .exe or a batch file where you will give your PGP command to encrypt and decrypt and execute it from the OS level in your adapter. Check my answer in this thread:
Re: PGP Encription
Might be useful.
PGP Encription
Re: PGP Encription
\Re: triggering encryption script with XI
Pls rewards if useful -
How to detect whether browser's java script disabled or not from server
How to detect whether browser's java script disabled or not from server side
I would use a hidden parameter created by a javascript. if this is null, javascript is disabled...
-
"Java Script Disabled on your browser. Please Enable it."
I tried to log-in to this site:
"http://www.edudel.nic.in/mis/MisAdmin/frmMisLogin.aspx"
but instead got this message:
"Java Script Disabled on your browser. Please Enable it."
I have already enabled JavaScript in settings, but it gives the same error. When I tried doing the same in Internet Explorer (v9), everything was working fine. Please tell me what to do.The problem is there's a glitch in the javascript of http://edudel.nic.in/mis/MisAdmin/frmMisLogin.aspx
There's a form element with an ID of "txtpassword", but in their validation function, they call it with getElementById("txtPassword"). Obviously a case issue, but it apparently works in IE.
I created a workaround for a user I met in #firefox, a simple greasemonkey script that replaces the function with a fixed version.
Here's the link:
http://userscripts.org/scripts/show/102156 -
Privileges on script from another partition
Hello all,
I currently encounter an error when I try to execute a process chain using indirectly the script RSI.RSI_RUN_BW_CHAIN though a customized script.
Here is the idea: I use a script "P.S", that belongs to a distinct partition P, in which there is a dynamic call to the RSI.RSI_RUN_BW script with the jcs.submit procedure.
The error I get is:
ORA-20800: JCS-02001: object RSI.RSI_RUN_BW_CHAIN does not exist
ORA-06512: at "SYSJCS.SECURITY", line 3128
ORA-06512: at "SYSJCS.VAL", line 5817
ORA-06512: at "SYSJCS.VAL", line 6058
ORA-06512: at "SYSJCS.JCS", line 2890
ORA-06512: at "P.S", line 51
ORA-06512: at "P.S", line 110
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_SYS_SQL", line 1200
ORA-06512: at "SYS.DBMS_SQL", line 323
ORA-06512: at "SYSJCS.DDL", line 1085
ORA-06512: at "SYSJCS.DDL", line 1118
JCS-00215: in statement RSOJ_EXECUTE_JOB
But works fine with any script in the partition SYSJCS for instance.
I have checked the privileges in my P partition and compared from an environment where the script P.S works; and notice nothing unusual.
Any clue about this error ?
Thanks for your help.
Regards,
Yi JiangHi Anton,
The thing is that I haven't grant any privilege to the script RSI.RSI_RUN_BW_CHAIN in an environment in which the dynamic caller script (with jcs.submit) works fine. I have check the privileges of the script with the F3 key, and my partition doesn't belong the allowed users for execution or anything else.
Maybe there is somewhere else to check or an other way to give this privilege to RSI scripts ?
To unblock my issue, on the unworking environment, I have grant to the P user the following privileges 'VIEW_ANY_SCRIPT" and 'SUBMIT_ANY_SCRIPT". It works.
(But this solution was not implemented in the working environment).
Tell me if you need more information.
Thanks a lot.
Regards,
Yi Jiang -
While browsing "http://edudel.nic.in" this site when we enter id and password it gives message"Java Script Disabled on your browser. Please Enable it." but it is allready enabled in Tools-> Options-> Content window
The problem is there's a glitch in the javascript of http://edudel.nic.in/mis/MisAdmin/frmMisLogin.aspx
There's a form element with an ID of "txtpassword", but in their validation function, they call it with getElementById("txtPassword"). Obviously a case issue, but it apparently works in IE.
I created a workaround for a user I met in #firefox, a simple greasemonkey script that replaces the function with a fixed version.
Here's the link:
http://userscripts.org/scripts/show/102156 -
I have alrady enabled java script but my bank website prompt me that java script disabled so for thesame am not able to pay or transfer my funds online.
Java and JavaScript are not the same thing. To ensure the JavaScript is enabled, go to the Options dialog and select the Content panel and make sure that "Enable JavaScript" is selected. There are add-ons that can block JavaScript, if you have an add-on such as NoScript, make sure that it has not blocked your bank site.
If you are still having problems, try running Firefox in [[safe mode|Firefox safe mode]], this will disable add-ons and can be used to see if an ad-on is causing the problem. If it works in safe mode, follow the procedure in the [[Troubleshooting extensions and themes]] article to identify which one is doing this. -
Run Linux script with Runtime.exec
Hi there!
I want to run some Linux script files out of a Java application.
I'm currently using a code like this:
Runtime rt = Runtime.getRuntime();
Process p=rt.exec("//home//scriptFile1");But this isn't working. Although I'm getting no exeption, the file isn't executed.
It looks like he's doing something, but he's definitly not processing the file.
I think the problem is probably, that in scriptFile1, I call some other script files (which call itself some other script files).
E.g. like this:
scriptFile1:
scriptFile2
binary1
binary2
scriptFile3Any ideas?
Thank you!Hi! I now get at least some error messages, when I call the script file:
knoppix@Knoppix:~/Desktop$ java Main
start
ERROR>/media/hda5/scripts/startds_2: line 1: stop: command not found
ERROR>/media/hda5/scripts/startds_2: line 3: dspp_2: command not found
ERROR>/media/hda5/scripts/startds_2: line 5: killcan: command not found
ERROR>/media/hda5/scripts/startds_2: line 7: canpdemsimeit: command not found
ERROR>/media/hda5/scripts/startds_2: line 9: demsimeit: command not found
ERROR>/media/hda5/scripts/startds_2: line 11: guidemsimeit: command not found
ERROR>/media/hda5/scripts/startds_2: line 13: MCAbrowser: command not found
ExitValue: 0These "lost" commands are all located in the same directory as the script I call, so I wonder why.
I could adjust every command by adding in front of it the absolute path in the script file. That would work. But maybe I can pass in some other way the directory, in which he should search for the commands. That would save me a lot of work...
I will RTFM but if anyone has currently an idea: please post...
THX -
Runtime exec to run linux scripts
Hi,
I have been having trouble running a simple linux script from within my java program. So far, this is the command line i am passing to the exec() method:
String[] commandArray = {"/bin/sh", "-c", "sh",
"/home/charles/java/ideaProjects/Condor/linuxScripts/LinuxSubmit.sh",
"TwoMinTest.cmd"};
Process proc = rt.exec(commandArray);
The last paramater, "TwoMinTest.cmd" is a varibale that is passed to the script. The command works fine from a linux terminal window but from the java program the process just hangs with no out put from the script (the script does an echo "hello" first). Both the error and input streams obtained from the process do not output anything. If i instert a deliberate mistake into the command the error stream outputs it fine. Any idea why it hangs?
thanks, CharlesI've fixed it for anyone who's interested, this is what i did:
String[] commandArray = {"/bin/sh", "-c", "sh"};
Process proc = rt.exec(commandArray);
OutputStream out = proc.getOutputStream();
PrintWriter p = new PrintWriter(out);
p.println("sh /home/charles/java/ideaProjects/Condor/linuxScripts/LinuxSubmit.sh " +
"TwoMinTest.cmd");
p.flush();
and it flew like a bird.
charles -
Problems disabling the "Create ZEN partition" with PXE
I have a new PXE server running ZEN7 on OES2. I have been able to get all the functionality of my older PXE server on Netware, with one exception. The Linux-based PXE server prompts to create a ZEN imaging partition every time a system is imaged. I have this disabled in the server policy, which appears to be working in every other aspect (like showing the menu everytime PXE boot occurs). Any ideas?
toddco,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/ -
SQLPLUS Help with a Linux Script
I am receiving an SQLPLUS error of 155.
Apparently my SQL code is being truncated (I believe).
I originally had all of this code on separate lines to make it readable. Unfortunately for that try I also received a return code of 155.
I copied this SQL from my SQL DEVELOPER where this SQL works properly.
Can anybody make any suggestions?
BTW, I am newbie to both Linux Shell Scripts, SQL, and SQLPLUS.
Here is the log from the run of the script:
SQL*Plus: Release 11.2.0.2.0 Production on Fri May 4 17:49:38 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> SQL> Connected.
SQL> SQL> SQL> SELECT to_char(c.update_date, 'FMMonth, YYYY') 'Shipment Update Date'||'|'||b.SHIPMENT_GID 'Shipment Number'||'|'||count (distinct (b.SHIPMENT_GID)) 'No of Shipments'||'|'||count(distinct(a.i_transaction_no)) 'Auctions per Shipment'||'|'||count(*) 'No. of Carriers Notified'||'|'||sum (case when a.responding_gl_user_gid is null then 0 else 1 end) 'No of Bidders'||'|'||min (numtodsinterval((b.expected_response - b.insert_date),'day')) 'Duration of Auction'||'|'||min (numtodsinterval((a.update_date - a.transaction_time),'day')) 'Elapse time for first bid'||'|'||max (numtodsinterval((a.update_date - a.transaction_time),'day')) 'Elapse time for last bid'||'|'||numtodsinterval((max(a.update_date) - min(a.update_date)),'day') 'Elapse time of bidding'||'|'||numtodsinterval((max(b.shipment_time) - max(c.insert_date)),'day') 'Lead Time of Auction to P/U'||'|'||(max(a.bid_amount) - min(a.bid_amount)) 'High Bid- Low Bid Diff' from tender_collab_servprov a, tender_collaboration b, shipment c where a.i_transaction_no = b.i_transaction_no and b.shipment_gid not in (select sqa.shipment_gid from tender_collaboration sqa, tender_collab_servprov sqb where sqa.i_transaction_no = sqb.i_transaction_no and sqb.acceptance_code = 'A') and a.i_transaction_no in (select i_transaction_no from tender_collaboration where tender_type = 'Spot Bid') and b.shipment_gid = c.shipment_gid AND c.update_date >= trunc(last_day(to_date((to_char(add_months(SYSDATE,-2), 'MM-DD-YYYY')),'MM-DD-YYYY')) + 1) group by c.update_date, b.SHIPMENT_GID order by c.update_date, b.shipment_GID
ERROR at line 1:
ORA-00923: FROM keyword not found where expected
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Here is the Linux Shell script:
/bin/sh
LOGFILE="$(date +"%Y-%m-%d %H") Oracle REPORT LOG.TXT"
FILENAME="$(date +"%Y-%m-%d") PROD Unfinished Spot Bids.CSV"
echo "File Name for the spool is:" "$FILENAME"
#spool "$FILENAME"
sqlplus /nolog <<EOF >$LOGFILE
whenever sqlerror exit sql.sqlcode
connect glog_read/parker@OTMDEV
spool PROD_Unfinished.CSV
set linesize 32000 trimspool on pagesize 3000
SELECT to_char(c.update_date, 'FMMonth, YYYY') 'Shipment Update Date'||'|'||b.SHIPMENT_GID 'Shipment Number'||'|'||count (distinct (b.SHIPMENT_GID)) 'No of Shipments'||'|'||count(distinct(a.i_transaction_no)) 'Auctions per Shipment'||'|'||count(*) 'No. of Carriers Notified'||'|'||sum (case when a.responding_gl_user_gid is null then 0 else 1 end) 'No of Bidders'||'|'||min (numtodsinterval((b.expected_response - b.insert_date),'day')) 'Duration of Auction'||'|'||min (numtodsinterval((a.update_date - a.transaction_time),'day')) 'Elapse time for first bid'||'|'||max (numtodsinterval((a.update_date - a.transaction_time),'day')) 'Elapse time for last bid'||'|'||numtodsinterval((max(a.update_date) - min(a.update_date)),'day') 'Elapse time of bidding'||'|'||numtodsinterval((max(b.shipment_time) - max(c.insert_date)),'day') 'Lead Time of Auction to P/U'||'|'||(max(a.bid_amount) - min(a.bid_amount)) 'High Bid- Low Bid Diff' from tender_collab_servprov a, tender_collaboration b, shipment c where a.i_transaction_no = b.i_transaction_no and b.shipment_gid not in (select sqa.shipment_gid from tender_collaboration sqa, tender_collab_servprov sqb where sqa.i_transaction_no = sqb.i_transaction_no and sqb.acceptance_code = 'A') and a.i_transaction_no in (select i_transaction_no from tender_collaboration where tender_type = 'Spot Bid') and b.shipment_gid = c.shipment_gid AND c.update_date >= trunc(last_day(to_date((to_char(add_months(SYSDATE,-2), 'MM-DD-YYYY')),'MM-DD-YYYY')) + 1) group by c.update_date, b.SHIPMENT_GID order by c.update_date, b.shipment_GID;
spool off
EOF
RV=$?
echo "The return code fronm the sqlplus was:" "$RV"Looks the SELECT clause have missing pipes. See corrected one below :
The shell script format has alread been given above.
SELECT TO_CHAR(c.update_date, 'FMMonth, YYYY') || 'Shipment Update Date' || '|' ||
b.shipment_gid || 'Shipment Number' || '|' ||
COUNT(DISTINCT(b.shipment_gid)) || 'No of Shipments' || '|' ||
COUNT(DISTINCT(a.i_transaction_no)) || 'Auctions per Shipment' || '|' ||
COUNT(*) || 'No. of Carriers Notified' || '|' ||
SUM(CASE WHEN a.responding_gl_user_gid IS NULL THEN 0 ELSE 1 END) || 'No of Bidders' || '|' ||
MIN(numtodsinterval((b.expected_response - b.insert_date), 'day')) || 'Duration of Auction' || '|' ||
MIN(numtodsinterval((a.update_date - a.transaction_time), 'day')) || 'Elapse time for first bid' || '|' ||
MAX(numtodsinterval((a.update_date - a.transaction_time), 'day')) || 'Elapse time for last bid' || '|' ||
numtodsinterval((MAX(a.update_date) - MIN(a.update_date)), 'day') || 'Elapse time of bidding' || '|' ||
numtodsinterval((MAX(b.shipment_time) - MAX(c.insert_date)), 'day') || 'Lead Time of Auction to P/U' || '|' ||
(MAX(a.bid_amount) - MIN(a.bid_amount)) || 'High Bid- Low Bid Diff'
FROM tender_collab_servprov a,
tender_collaboration b,
shipment c
WHERE a.i_transaction_no = b.i_transaction_no
AND b.shipment_gid NOT IN ( SELECT sqa.shipment_gid
FROM tender_collaboration sqa,
tender_collab_servprov sqb
WHERE sqa.i_transaction_no = sqb.i_transaction_no
AND sqb.acceptance_code = 'A')
AND a.i_transaction_no IN (SELECT i_transaction_no
FROM tender_collaboration
WHERE tender_type = 'Spot Bid')
AND b.shipment_gid = c.shipment_gid
AND c.update_date >= trunc(last_day(to_date((to_char(add_months(SYSDATE, -2),'MM-DD-YYYY')),'MM-DD-YYYY')) + 1)
GROUP BY c.update_date, b.shipment_gid
ORDER BY c.update_date, b.shipment_gid
{code} -
Disable data partition in Micropho
I'm going through the Zen Microphoto PDF manual and I can't seem to find an option to completely disable the data-only partition. I know I can do this on the Zen Micro. Is this option available on the Micrphoto I don't actually own a Microphoto so I can't test it out physically. Thanks for the help!
The Removable Disk feature is the same on the Zen MicroPhoto as it is on the Zen Micro. You can choose the size, or to disable it.
Cat -
I just made an interesting discovery.
I cloned an existing VM and moved it to another physical machine. This
machine was initially installed without LUM and as long as LUM was not
configured and only local authentication took place everything (NCL,
Micasa and integrated login) worked as documented.
After configuring LUM authentication, the following does not work:
Micasa (it does only work as long as the machine is up, after a restart
you have to enter passwords for all micasa enabled applications if you
use them for the first time during uptime)
NCL does not save the settings for scripts, they are always disabled by
default after the machine has come up. The settings for scripts do work
for all subsequent logins, just not for the first after booting the
machine.
The same behaviour is shown by another machine, which has LUM
configured for authentication.
Machines do not show this behaviour if using a local only user or if
LUM authentication is removed.
W. PrindlW.,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://support.novell.com/forums)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://support.novell.com/forums/faq_general.html
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/
Maybe you are looking for
-
Hi, I am unable to convert the below ssrs expression to sql query. can you guys help. -- IIF(Parameters!parameter1.Value Is Nothing, -- " 3>2 ", -- "column1 NOT LIKE -- Replace(IIF(Left
-
I wanted to delete the information i had stored on the phone, so thought i had to 'Erase All Content and Settings' however i fear this may of been incorrect, I cannot load the setup on the phone now, all i get is; 'we are unable to contiue with this
-
Where to find the pcui_gp components ,How to get the source code of those
Hi All, Can anybody tell the exact location wher the pcui_gp components will be stored if they are not appearing. And another question is how to get the source code of the pcui_gp for customization. anybody working on these compoents please help me.
-
Trying to erase and reinstall Lion without Apple ID
A while back I bought a MacBook Pro from a friend. It came with a Lion Installation Disk. I've tried erasing the harddrive, and reinstalling Lion, but now im being prompted to enter the Apple ID that purchased Lion. Since my friend bought the compute
-
Windows driver error access denied
I just bought an ipod nano 7th generation. I have windows 7. Computer does not authomatically recognized ipod. When I updated driver got the message access denied. I have tried everything I can to no avail Please help it's driving me crazy.