How to spawn processes via ampersand within bashrc startup script
How to properly "enclose" or handle the special character (& - the background character) within the bash shell's .bashrc startup file?
It does not work for these 2 examples (\& and &):
alias abc='emacs $* \&'
alias xyz='emacs $* &'
Please advise. Thanks.
Actually the problem is that the $* (or $@) is expanded when the alias is created and of course at creation time the $* is empty.
So it's not really so much
emacs & $*
as
emacs & filename
But either way you are correct that to pass a command line arg in a case like this you need to use a function.
But the fact still remains that the standard OS X emacs will block waiting for a terminal if started in the bg.
regards
Message was edited by: Frank Caggiano
Similar Messages
-
How to pass process flow input parameter to unix script external process
Hi,
I'm trying to pass a process flow input paramter (string) to an external process which is a unix script. I've been working on this for the last 2 days but can't get it to work. Here is the design. I have a process flow with 3 maps that create a file in the unix file system. I have a suffix, which is an input parameter to the process flow, that will need to be passed to the unix script to rename the file appending the suffix to the filename. I've tried different things and nothing works for me. Has anyone done something similar in OWB?
Thanks much!I tried using useBean inside the Jsp for this.
But following error comes:
OracleJSP error: oracle.jsp.parse.JavaCodeException: Line # 13, oracle.jsp.parse.JspParseTagExpression@102e37e
Error: Java code in jsp source files is not allowed in ojsp.next mode.
Please explain why?
How can set POST request params when calling to an external servlet? -
How to parse a xml file within a WLST script
Hi all,
I'm using ALSB2.6 and I'm writing a WLST script that should read config info from a xml file and create an ALSB prj.
I got an error when I call:
xmldoc = minidom.parse(sock).documentElement
The code:
print '#### IPEventConfigFile: ', IPEventConfigFile
IPEventConfig = loadXML(IPEventConfigFile)
where
def loadXML(source):
sock = open(source)
xmldoc = minidom.parse(sock).documentElement
sock.close()
return xmldoc
The error:
[java] #### IPEventConfigFile: /products/software/terraferma/release3/EventBus/repository/events/DummyEvent/resource/DummyEvent-IPEventConfig.xml
[java] ===============================================================
[java] Unexpected error: exceptions.AttributeError
[java] ===============================================================
[java] No stack trace available.
[java] Unexpected error: exceptions.AttributeError
[java] No stack trace available.
[java] Problem invoking WLST - Traceback (innermost last):
[java] File "/products/software/terraferma/release3/EventBus/scripts/cloning.py", line 198, in ?
[java] File "/products/software/terraferma/release3/EventBus/scripts/cloning.py", line 102, in cloning
[java] File "/products/software/terraferma/release3/EventBus/scripts/cloning.py", line 178, in loadXML
[java] File "Lib/xml/dom/minidom.py", line 908, in parse
[java] File "Lib/xml/dom/minidom.py", line 900, in _doparse
[java] File "Lib/xml/dom/pulldom.py", line 251, in getEvent
[java] AttributeError: feed
Line 178 is:
xmldoc = minidom.parse(sock).documentElement
I'm trying to understand where I'm wrong.
Thanks in advance
ferpUsing the SAXParser in JAXP the parsing of the XML file is event driven.
Instantiate the parser:
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser parser = factory.newSAXParser();
InputSource is = new InputSource(new FileReader(theXML));call the parse method:
parser.parse(is, this);The following events are fired as the parser works through the XML public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws org.xml.sax.SAXException
public void endElement(String namespaceURI, String localName, String qName) throws org.xml.sax.SAXException
characters(char[] ch, int start, int length)etc.
You write what you want within each of these sections to handle the structure of your data. Keep in mind SAX is useful only when you know the structure of your XML. -
Dhcpcd not starting correctly via rc.d/network startup script
Whenever I try to setup my network with /etc/rc.d/network I always fail to get a lease. When I execute the same command manually, I get an IP and everything associated with it.
I've added the lines below to the network script for debugging:
echo 'whoami: '`whoami`
echo 'which dhcpcd: '`which dhcpcd`
echo '$DHCPCD_ARGS: '$DHCPCD_ARGS
echo '$interface: '$interface
I've set it to debug mode, and have the output when running it below
[foo@bar etc]$ sudo rc.d/network start
:: Starting network [BUSY]
whoami: root
which dhcpcd: /usr/sbin/dhcpcd
$DHCPCD_ARGS: -d
$interface: eth0
dhcpcd[3483]: version 5.5.6 starting
dhcpcd[3483]: eth0: using hwaddr 52:44:a3:6c:c2:72
dhcpcd[3483]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd[3483]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason NOCARRIER
dhcpcd[3483]: eth0: carrier acquired
dhcpcd[3483]: eth0: using hwaddr 52:44:a3:6c:c2:72
dhcpcd[3483]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd[3483]: eth0: carrier lost
dhcpcd[3483]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason NOCARRIER
dhcpcd[3483]: eth0: waiting for carrier
dhcpcd[3483]: eth0: carrier acquired
dhcpcd[3483]: eth0: using hwaddr 52:44:a3:6c:c2:72
dhcpcd[3483]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd[3483]: eth0: broadcasting for a lease
dhcpcd[3483]: eth0: sending DISCOVER (xid 0xc83b6419), next in 4.84 seconds
dhcpcd[3483]: eth0: sending DISCOVER (xid 0xc83b6419), next in 8.24 seconds
dhcpcd[3483]: eth0: sending DISCOVER (xid 0xc83b6419), next in 16.37 seconds
dhcpcd[3483]: timed out
Yet I run the same command manually and everything's happy:
[spitfire@killdesk etc]$ sudo /usr/sbin/dhcpcd -d eth0
dhcpcd[3511]: version 5.5.6 starting
dhcpcd[3511]: eth0: using hwaddr 52:44:a3:6c:c2:72
dhcpcd[3511]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd[3511]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd[3511]: eth0: broadcasting for a lease
dhcpcd[3511]: eth0: sending DISCOVER (xid 0xfddd3649), next in 4.66 seconds
dhcpcd[3511]: eth0: offered 192.168.1.1 from 192.168.1.254
dhcpcd[3511]: eth0: sending REQUEST (xid 0xfddd3649), next in 3.31 seconds
dhcpcd[3511]: eth0: acknowledged 192.168.1.1 from 192.168.1.254
dhcpcd[3511]: eth0: checking for 192.168.1.254
dhcpcd[3511]: eth0: sending ARP probe (1 of 3), next in 1.94 seconds
dhcpcd[3511]: eth0: sending ARP probe (2 of 3), next in 1.40 seconds
dhcpcd[3511]: eth0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd[3511]: eth0: leased 192.168.1.1 for infinity
dhcpcd[3511]: eth0: adding IP address 192.168.1.1/24
dhcpcd[3511]: eth0: adding route to 192.168.216.0/24
dhcpcd[3511]: eth0: adding default route via 192.168.1.254
dhcpcd[3511]: eth0: writing lease `/var/lib/dhcpcd/dhcpcd-eth0.lease'
dhcpcd[3511]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND
dhcpcd[3511]: forking to background
dhcpcd[3511]: forked to background, child pid 3537
What am I doing wrong, and/or what can I do to fix this?Maybe I got something wrong here but didn't sspitfire write that dhcpcd only works when starting it manually after it failed at startup? What exactly is "noip4all" supposed to do, I'm asking because it didn't work for me. I tried "noip4ll" like written in dhcpcds manpage without any effort . "noarp" and "waitip" also had no positive effect. Maybe I leave dhcpcd in the rc.local even if it's a bit of a dirty solution. ("noarp" and "waitip" I gathered from the dhcpcd manpage).
-
How to use List within javaFX(*.fx) script?
How to use java.util.List within javaFX(*.fx) script?
The following is my code in Java
PDBFileReader pdbreader = new PDBFileReader();
pdbreader.setPath("/Path/To/PDBFiles/");
pdbreader.setParseSecStruc(true);// parse the secondary structure information from PDB file
pdbreader.setAlignSeqRes(true); // align SEQRES and ATOM records
pdbreader.setAutoFetch(true); // fetch PDB files from web if they can't be found locally
try{
Structure struc = pdbreader.getStructureById(code);
System.out.println("The SEQRES and ATOM information is available via the chains:");
int modelnr = 0 ; // also is 0 if structure is an XRAY structure.
List<Chain> chains = struc.getChains(modelnr);
for (Chain cha:chains){
List<Group> agr = cha.getAtomGroups("amino");
List<Group> hgr = cha.getAtomGroups("hetatm");
List<Group> ngr = cha.getAtomGroups("nucleotide");
System.out.print("chain: >"+cha.getName()+"<");
System.out.print(" length SEQRES: " +cha.getLengthSeqRes());
System.out.print(" length ATOM: " +cha.getAtomLength());
System.out.print(" aminos: " +agr.size());
System.out.print(" hetatms: "+hgr.size());
System.out.println(" nucleotides: "+ngr.size());
} catch (Exception e) {
e.printStackTrace();
}The following is my code in JavaFX(getting errors)
var loadbtn:SwingButton = SwingButton{
text:"Load"
action: function():Void{
var pdbreader = new PDBFileReader();
var structure = null;
try{
structure = pdbreader.getStructure(filepath.text);
List<Chain> chains = structure.getChains(0);
foreach (Chain cha in chains){
List < Group > agr = cha.getAtomGroups("amino");
List < Group > hgr = cha.getAtomGroups("hetatm");
List < Group > ngr = cha.getAtomGroups("nucleotide");
} catch (e:IOException) {
e.printStackTrace();
};I'm using Netbeans 6.5 with JavaFX
(PDBFileReader, Chain, Structure etc are classes from my own package, already added to the library folder under the project directory)
Simply put, How to use List and Foreach in JavaFX?We can not use Java Generics syntax in JavaFX. But we can use Java Collection classes using the keyword 'as' for type-casting.
e.g.
import java.util.LinkedList;
import java.util.List;
import javafx.scene.shape.Rectangle;
var outerlist : List = new LinkedList();
var innerlist : List = new LinkedList();
innerlist.add(Rectangle{
width: 10 height:10});
innerlist.add(Rectangle{
width: 20 height:20});
outerlist.add(innerlist);
for (inner in outerlist) {
var list : List = inner as List;
for (element in list) {
var rect : Rectangle = element as Rectangle;
println("(width, height)=({rect.width}, {rect.height})");
} -
How to start a process via web service with automatically run first screen
Hi guys,
we want to start the process via web service and skip the inbox presentation of the first human activity of the process. It means that the first activity should start automatically by clicking the link (wsdl link).
Is there any opportunity to realize this thought?
THX
Regrads
PhilHi Phil,
You may refer to my blog series for steop by step procedure on how to initiate a BPM workflow through webservice. Below are the links:
/people/arafat.farooqui/blog/2009/08/13/introduction-to-sap-netweaver-bpm-part-4
/people/arafat.farooqui/blog/2010/06/23/introduction-to-sap-netweaver-bpm-part-5
Hope this helps!!
Regards,
Arafat -
How to invoke BPEL process via HTTP POST (or GET)
Hi,
I'd like to know how to invoke BPEL process via HTTP POST (or GET), is there anyway simple to do it?
Thank youLook at my blog http://orasoa.blogspot.com search for plsql
or use SoapUI.org
or look in the Examples directory in the BPEL directory of the installation -
How to send EOF to spawned process....
Folks,
On Linux, the list of disks can be obtained as follows:
# format < /dev/null
Without redirecting /dev/null to its input, command "format" requires you to enter a value or CTRL-C.
I am trying to run format as a process within my Java code:
ProcessBuilder pb = new ProcessBuilder(args)
Process p = pb.start();
OutputStream os = p.getOutputStream();
os.close(); // Hopefully, sends EOF
p.waitFor();
As you can see, I am closing the input to the process, hoping that this will send an EOF to the process. However, the output that I get is erratic. Sometimes, I see the output and sometimes I don't.
My guess is that either I am not doing the right thing or may be I am closing the stream even before any processing is done.
I would appreciate your help in understanding what needs to be done to simulate redirecting /dev/null to the process.
Thank you in advance for your help.
Regards,
PeterThank you baptos and EJP.
I tried to show only the relevant code snippet earlier. I am also processing the other two streams using StreamGobbler class. Here are more details:
ProecessBuilder pb = new ProcessBuilder(args);
Process p = pb.start();
if (simulateDevNull == true) {
OutputStream os = p.getOutputStream();
os.close();
stdOut = new StreamGobbler(p.getInputStream());
stdErr = new StreamGobbler(p.getrrorStream());
stdOut.start();
stdErr.start();
p.waitFor();
Class StreamGobbler is a thread based class that can be used to process the output and the error from the spawned process in a separate thread. You can find many references to StreamGobbler class on the net.
Regards,
Peter -
How to delete PSAs via process chain
How to delete PSAs via processchain using program(need to delete automatically).
For that i have to create the processchain for specially deletiung the PSAa and need to write the code for deleting automatically.Hi
Please follow the below steps for PSA processchain deletion.
Create the Start varint
Drag the PSA deletion PSA Request from left menu bar proces types
Click on maintain varinat of the above dragged psa deletion
There you select like below
Object Type:PSA
Objectname:PSA Table name
Select the below options on the same screen as Older than 10 days ...
As per your requirement you can select the options..
Hope it will helps -
Issue:
On a vanilla installation, the sandboxed code service (e.g. SPUCHostService.exe) is started; however, SPUCWorkerProcessProxy.exe and subsequently SPUCWorkerProcess.exe fails to start.
Resolution/Workarounds attempted:
Attempted 2 different Load balancing settings – local and remote (i.e. affinity)
Ensured local computer policy on server for ‘RPC Endpoint Mapper Client Authentication’ and ‘Restrictions for Unauthenticated RPC clients’ is disabled.
Ensured following key in registry is set properly - HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\RPC
Attempted to bypass SharePoint’s check for certificate revocations at crl.microsoft.com
Ensured the service account is added to the respective groups (e.g. Performance Log Users, Performance Monitor Users, IIS_IUSRS, WSS_ADMIN_WPG, WSS_WPG)
Increased limit of ‘AbnormalProcessTerminationCount’ of SPUserCodeService via Powershell
We have tried all possible workarounds from the following MSDN reference:
http://blogs.msdn.com/b/sharepointdev/archive/2011/02/08/error-the-sandboxed-code-execution-request-was-refused-because-the-sandboxed-code-host-service-was-too-busy-to-handle-the-request.aspx
ULS:
02/21/2014 05:24:50.64 SPUCHostService.exe (0x0230) 0x0F74 SharePoint Foundation Sandboxed Code Service fe8a
Medium - - Unable to activate worker process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000
02/21/2014 05:24:50.64 SPUCHostService.exe (0x0230) 0x0F74 SharePoint Foundation Sandboxed Code Service fe8c
Medium - - Error activating the worker process manager instance within the worker process. - Inner Exception: System.InvalidOperationException: Unable to activate worker
process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000 at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.CreateWorkerProcessProxies()
02/21/2014 05:24:50.64 SPUCHostService.exe (0x0230) 0x0F74 SharePoint Foundation Sandboxed Code Service ei0t
Medium - Process creation/initialization threw an exception. Stopping this process. "ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000"
02/21/2014 05:24:50.65 SPUCHostService.exe (0x0230) 0x0F74 SharePoint Foundation Sandboxed Code Service
fe87 Medium - - Error activating the worker process manager instance within
the worker process. - Starting worker process threw - Inner Exception: System.InvalidOperationException: Unable to activate worker process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000 at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.CreateWorkerProcessProxies()
Any other insights on how I can troubleshoot the issue described?
Thanks in advance!Hi ,
For resolving your issue , you can do as the followings:
1. Logged into the Web Server with the Timer Service Account.
2. Ran the powershell command to check the SID of the account running the spucworkerprocessproxy.exe:
$(Get-SPManagedAccount -Identity "THE SERVICE ACCOUNT").Sid.Value
3. Checked the registry :
HKEY_USERS\[SID OF THE SERVICE ACCOUNT]\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing\State
4. Changed the value 0x00023c00 to 0x00023e00
In addition, here are some similar posts for you to take a look at:
http://social.technet.microsoft.com/Forums/en-US/aae497df-5f0d-4f86-a724-c7b805ccd07f/sharepoint-sandboxed-code-service-troubles?forum=sharepointgeneralprevious
http://blogs.technet.com/b/operationsguy/archive/2011/01/17/sharepoint-2010-sandboxed-code-solutions-and-web-proxy.aspx
http://social.msdn.microsoft.com/Forums/en-US/c21e2c3a-a259-4d5f-8071-eff52b7bddc3/issue-sandbox-solution-too-busy-to-handle-the-request?forum=sharepointgeneralprevious
I hope this helps.
Thanks,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support -
How To Call a Broadcasting Template within an ABAP program
I was wondering if anyone knew how to call the Broadcast template via an ABAP program so it will execute? The scenario that I have is we are doing validations via BW. We put the data (for conversion reasons) through validation rules and then load a data target. From this, there are 2 situations that could occur:
1) There are errors
2) There are not any errors
If #1 is true, then I would like to execute the Query Broadcasting Template that I have created. If #2 is true, then I would like to execute another process via the ABAP program. In the past, I was successful using exception reporting via reporting agent, since I was able to call that program but the report did not look good at all. Please let me know if there is a program that I could call in order to execute this broadcast that I have set up.
Best Regards,
TimHello,
although this is an old threat, but do you have any hints on how to dynamically change the template when broadcasting?
kind regards
Murat -
How to find process chain using background job in sm37
How to find process chain using background job in sm37
Better is to select the job.
Select (Define) Step (s) or F6.
Select the line and Menu Goto>Variant.
The variant contains the name of the CHAIN and its VARIANT.
Success
We faced an old job and via job monitoring we were informed about a cancelled job every 'interval'.
We noticed that the related chain was deleted but still the job was scheduled each interval again and was cancelled because an event was missing
We could not find the scheduled job via SM37.
Via view V_OP, view over tbtco abd tbtcp, we find the related entry.
We delete these entries via function BP_JOB_DELETE....
Edited by: Jack Otten on Jul 9, 2010 2:50 PM -
Hi Experts,
I need to remove a name on a group list in Outlook as the user is getting email delivery failure when processing via SAP (He sends the invoice for approval and emails get sent to different users for approval.) One of those users has left the company and so the user gets a email delivery failure error.
How do I remove this user who is no longer with the company?
The user is saying: When I approve an invoice in SAP it sends an email notification through outlook. One of those users is no longer with the company so it cannot deliver the notification, and in return send a delivery failure (in outlook). I am approving the invoices from my SAP Workplace inbox.
How do we know what group the email is going to?
Please let me know if you have seen this issue before. Greatly appreciate your help.
Thanks,
AsadHi,
Please check whether you are using a custom z program for sending emails of approved invoices to users. If yes then either the user email ids are hardcoded in the program else a ztable is maintained for them. -
How to Send Appointment via mail adapter
Hi Guys,
I need to send the appointment and vTodo via mail adapter, any way i need to develop a mail adapter module. Till now i have finished this part,and i can send normal mail even normal mail with attachment. But i don't know how to send appointment via mail adapter.
This is payload content of appointment which got from Exchange server to gmail:
_=_NextPart_001_01C71EC0.97A011C6
Content-Type: text/plain;
charset="GB2312"
Content-Transfer-Encoding: quoted-printable
When: 2007=C4=EA6=D4=C227=C8=D5=D0=C7=C6=DA=C8=FD 3:30 =CF=C2=CE=E7-4:00 = =CF=C2=CE=E7 (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi.
Where: China
~*~*~**
This is calendar content
_=_NextPart_001_01C71EC0.97A011C6
Content-class: urn:content-classes:calendarmessage
Content-Type: text/calendar;
method=REQUEST;
name="meeting.ics"
Content-Transfer-Encoding: 8bit
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft CDO for Microsoft Exchange
VERSION:2.0
BEGIN:VTIMEZONE
TZID:(GMT+01.00) Sarajevo/Warsaw/Zagreb
X-MICROSOFT-CDO-TZID:21
BEGIN:STANDARD
DTSTART:20070112T140000
TZOFFSETFROM:+0100
TZOFFSETTO:+0100
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20070112T140000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20061213T141132Z
DTSTART;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T140000
SUMMARY:This is calendar test
UID:040000008200E00074C5B7101A82E0080000000030D51864C81EC701000000000000000
010000000CA9F127EA8947844BC4DD47F269BDEA9
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky":MAILTO:rocky@***.com
ORGANIZER;CN="Xu":MAILTO:rocky@**.com;roc*@gmail.com
LOCATION:Shanghai
DTEND;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T160000
DESCRIPTION:This is calendar content\N
SEQUENCE:0
PRIORITY:5
CLASS:
CREATED:20061213T141132Z
LAST-MODIFIED:20061213T141133Z
STATUS:CONFIRMED
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-OWNERAPPTID:367904726
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20061213T141132Z
X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20061213T141132Z
END:VEVENT
END:VCALENDAR
_=_NextPart_001_01C71EC0.97A011C6--
My question is
1. How to generate this kind of payload in mail adapter module?
2. It is possible to send appointment via mail adapter?
Following i can get from other system, even using mail package check or not using mail package check.
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft CDO for Microsoft Exchange
VERSION:2.0
BEGIN:VTIMEZONE
TZID:(GMT+08.00) Kuala Lumpur/Singapore
X-MICROSOFT-CDO-TZID:21
BEGIN:STANDARD
DTSTART:16010101T000000
TZOFFSETFROM:+0800
TZOFFSETTO:+0800
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T000000
TZOFFSETFROM:+0800
TZOFFSETTO:+0800
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20070608T025852Z
DTSTART;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T110000
SUMMARY:This is meeting request with attachment
UID:040000008200E00074C5B7101A82E0080000000000A9BD0BA7A9C701000000000000000
010000000C5E16D144D1612498C0EF7E2115EFEC4
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky
":MAILTO:roc*@**
ORGANIZER;CN="Xu,y":MAILTO:roc*@**
LOCATION:India labs
DTEND;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T113000
DESCRIPTION:This is content! <<shanghai.txt>> \N
SEQUENCE:0
PRIORITY:5
CLASS:
CREATED:20070608T025925Z
LAST-MODIFIED:20070618T033505Z
STATUS:CONFIRMED
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
ATTACH:CID:008501c7b159$a9d41d3b$_CDOEX
X-MICROSOFT-CDO-OWNERAPPTID:1468557271
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20070608T025852Z
X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20070608T025852Z
END:VEVENT
END:VCALENDAR
Thanks & regards
RockyHi
have a look at this
You can use Java/ABAP proxies to do this job for you..
Java Proxy >> will read the mail(with the attachments) with the help of Java APIs and send the message into XI ABAP Proxy >> for this you will have to first convert the attachment into a message and then you can proceed in the regular fashion.
Not all adapters can process attachments, I'm not sure why you are having trouble with using module processor in the mail adapter. Just check if the service pack that you are using supports this feature.
If you are on WAS 6.10 and above you can achieve this and there is an excellent weblog by Thomas Jung on this topic at
/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
reading Pdf Through mail easly done with Java Proxy, which will read the mail(with the attachments) with Java APIs and send the message into XI and then map with the Target ABAP proxy structure .
Thanks -
Is there a way to trigger batch process via Applescript or Javascript?
Based on what I've found so far on the internet, the answer is no. The Applescripts I've found so far that attempt to run a batch process don't work for me in either Acrobat Pro 8 or Pro 9.
I've been using Applescript to automate a process that starts in InDesign (create PDFs), then goes to Acrobat to set open options (I've got a batch process for that but can't find a way to trigger it). If I can get that to work, I'll attempt to automate the task of using a Photoshop droplet to create JPEGs of a specific size from these PDFs.
I've settled on InDesign CS3 for creating single-page PDFs from a multiple-page document, partly because I could not find a scriptable way to do this in Acrobat. I know just enough about Applescript to be dangerous. I know much less about Javascript.
Any help would be appreciated.
Thanks,
Kevin StaufferKevin some thing like this for Photoshop should aid you
set Todays_Date to do shell script "date \"+%d-%m-%y\""
-- Create new folder to save to
tell application "Finder"
set Raster_Images to make new folder at desktop with properties ¬
{name:"Rasterized PDF's " & Todays_Date}
end tell
-- Set Photoshop settings
tell application "Adobe Photoshop CS2"
activate
set display dialogs to never
set User_Rulers to ruler units of settings
set ruler units of settings to pixel units
-- set background color to {class:CMYK color, cyan:0, magenta:0, yellow:0, black:0}
-- set foreground color to {class:CMYK color, cyan:0, magenta:0, yellow:0, black:100}
end tell
-- Get list of PDF's
set The_Question to "Do you want to include all the subfolders" & return & "within your folder selection?"
set The_Dialog to display dialog The_Question buttons {"No", "Yes"} default button 1 with icon note
if button returned of The_Dialog is "Yes" then
set Input_Folder to choose folder with prompt "Where is the top level folder of PFD's?" without invisibles
tell application "Finder"
set File_List to (files of entire contents of Input_Folder whose name extension is "pdf")
end tell
else
tell application "Finder"
set Input_Folder to choose folder with prompt "Where is the folder of PFD's?" without invisibles
set File_List to (files of Input_Folder whose name extension is "pdf")
end tell
end if
set File_Count to count of File_List
if File_Count = 0 then
display dialog "This folder contains no PDF files to rasterize!" giving up after 2
end if
-- Loop through the files in list
repeat with This_File in File_List
tell application "Finder"
set The_File to This_File as alias
end tell
-- Tiger (OSX.4) shell call to count the pages
set Page_Count to my PDF_Pages(POSIX path of The_File)
if the result is not false then
-- Loop Photoshop through the page count
repeat with i from 1 to Page_Count
tell application "Adobe Photoshop CS2"
activate
open The_File as PDF with options ¬
{class:PDF open options, bits per channel:eight, constrain proportions:true, crop page:trim box, mode:CMYK, page:i, resolution:300, suppress warnings:true, use antialias:true, use page number:true}
set Doc_Ref to the current document
tell Doc_Ref
flatten
-- Enter your name strings into two enties below
-- Case sensitive stings
-- do action "My Action" from "My Action Set"
-- New file naming options
set Doc_Name to name
set ASTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to " "
set Doc_Name to text items of Doc_Name
set AppleScript's text item delimiters to "_"
set Doc_Name to Doc_Name as string
set AppleScript's text item delimiters to "-"
set Doc_Name to text item 1 of Doc_Name
set AppleScript's text item delimiters to ASTID
if Page_Count = 1 then
set New_File_Name to (Raster_Images as string) & Doc_Name & ".tif"
else
set File_Number to ""
repeat until (length of (File_Number as text)) = (length of (Page_Count as text))
if File_Number = "" then
set File_Number to i
else
set File_Number to "0" & File_Number
end if
end repeat
set New_File_Name to (Raster_Images as string) & Doc_Name & "_" & File_Number & ".tif"
end if
end tell
save Doc_Ref in file New_File_Name as TIFF with options {byte order:Mac OS, embed color profile:false, image compression:LZW, save alpha channels:false, save layers:false}
close current document without saving
end tell
end repeat
end if
end repeat
-- Set ruler units back to user prefs
tell application "Adobe Photoshop CS2"
set ruler units of settings to User_Rulers
end tell
beep 3
-- OSX Tiger shell handler
on PDF_Pages(This_PDF)
try
do shell script "/usr/bin/mdls -name kMDItemNumberOfPages" & space & quoted form of This_PDF & " | /usr/bin/grep -o '[0-9]\\+$'"
on error Error_Message number Error_Number
if Error_Number is 1 then
display alert "Page Count Unavailable" message "The page count for " & This_PDF & " is unavailable." giving up after 3
return false
else
display alert "Error " & Error_Number message Error_Message giving up after 3
return false
end if
end try
end PDF_Pages
and something like this to perform JavaScript from within AppleScript for Acrobat
You would be better talking to the JavaScript Experts on how to use addScript() to get your doc level scripts in.
property Default_Path : (path to desktop folder as Unicode text) as alias
property JavaScript : "var re = /.*\\/|\\.pdf$/ig; var filename = this.path.replace(re,''); try { for (var i = 0; i < this.numPages; i++) this.extractPages( { nStart: i, cPath: filename+'_' + (i+1) +'.pdf' }); } catch (e) { console.println('Aborted: '+e) }" as text
set The_PDF to choose file default location Default_Path ¬
with prompt "Where is the multi-page PDF?" without invisibles
tell application "Adobe Acrobat 7.0 Professional"
activate
open The_PDF
tell active doc
do script JavaScript
close saving yes
end tell
end tell
Maybe you are looking for
-
Is possible to install Application server 7 on SuSE linux 9.0
is possible to install Application server 7 on SuSE linux 9.0
-
Adobe and script causing slow run
Every once in a while I get a spinning beach ball for about 10 seconds, then a box saying an Adobe Script is causing things to run slow, do I want to abort the script. I do and everything's fine. What is it that's happening? Should I trash Adobe Read
-
Prtnr determinatn procedure at item category
hii experts, What is the template Partner Detmn Procedure in Item Category meant for. explain with logic regards Montee
-
HT2729 Why can't I sinc movies in my iTunes library to my iPad 3?
When I try and sinc movie from my PC to my iPad it says my iPad is not authorized, why is this and how do I fix this problem?
-
hai BW gurus i had a question this is about ODS. my staging scenario is ODS and Infocube because of the availablity of the chang log for supporting Delta . in my job here u never know what request is right and what request is wrong and some