Making system calls in Flex

- Can I make system calls to access the local file system? If
so, is there a sample?
- Can I make system calls to run local console
scripts/binaries and get the output back? If so, is there a sample?
Thanks,

"Greg Lafrance" <[email protected]> wrote in
message
news:gd8flp$sul$[email protected]..
> To be fair, Adobe's initial vision for AIR is not as a
technology that
> would
> permit you to create desktop apps that do all that
"regular" desktop apps
> do.
>
> Part of the reason is because they wanted to have a
solution that "starts"
> to
> blur the lines between online and desktop, but I suspect
another reason is
> because they wanted to get it out the door, and dealing
with the
> additional
> security considerations might delay that.
>
> That said, I'm right there with you, I am looking
forward to when AIR apps
> can
> execute native apps.
>
> One of the problems is that Adobe has "grown up" and now
is getting a
> touch
> stiff, though I still believe they will continue to be
one of the greatest
> software firms out there for the next 5 - 10 - 15+
years.
>
> Of course I work there, so I'm at least a bit biased.
But then again, I am
> a
> bit of a rebel against some aspects of Adobe (and
definitely against some
> aspects of the former Macromedia) culture.
Heh. Been there, done that. They stopped giving me t-shirts

Similar Messages

  • Quick question about making system calls

    hello all
    i have a simple quick question regarding making system calls. Basically I want to mimic the command "system" for perl. I am not quite sure how to do this for java.
    any feedback would be appreciated.

    look at:
    java.lang.RunTime

  • Making system calls in java

    I want to join some split files into one. In command prompt I use COPY /B file.1+file.2 file to join the files. How can i do the same in my java application. Please show the code which I suppose will use getRuntime. Thanks in advance.

    Well if there is a problem with system calls then can
    you tell me if there is a class in java for
    concetanating files. Not directly.
    At present I am joing the files
    by reading each byte from the files and writing them
    to another file which takes hell lot of time. You should read the files in large chunks. Much much faster.
    Thanks
    in advance again. Also if you say about sequential
    file class then please expalin a bit bcs I couldn't
    implement it.Post the code you are having trouble with explaining what it should do and what it actually does.

  • Adding menu items and making system calls in AfterEffects (AE,CS3)

    We are looking to do the following things via javascript in AfterEffects CS3. It does seem straight-forward, but am unable to find a good reference or example.
    * Add at startup a menu item under "File" (or similar main menu) and have it call a script function when clicked.
    * Have a script make an external system call (to launch an external application/executable with a few parameters)
    Any insights on how to achieve this?
    Many thanks!

    I wanted to see if there was any update on this, I'm writing a series of tools and would love to create a custom menu for quick and easy access.
    If it turns out there isn't an "easy" way to do this (env variables, special directory locations, javascripts) would anyone know if access to the menubar is possible from the Plugin API?
    I'm fairly new to After Effects, just getting up-to-speed on the environment now... seeing if I can duplicate the functionality of some old Nuke scripts in AE.
    thanks,
    Rick_

  • Making System Calls

    This question has two parts, though they are related. (My goal, in case anyone's curious, is to make a view that can find and index Dilbert cartoons saved on my hard drive.)
    1. Can Java call system functions, such as "dir" (on a Windows PC), and catch the results? Not with something fancy, like native code, but just using pure Java?
    2. Can Java run an application, given a specific path? (for example, run a Perl script)
    thanks,
    Andrew

    Read the JavaDocs.
    For directories and Files: java.io.File.list() or java.io.File.listFiles()
    For executing command java.lang.RunTime.exec()
    Dave

  • Can I source an environment before making a system call from the database

    I can execute system calls from the database like
    Process proc = Runtime.getRuntime().exec("env");
    but I am unable to source an environment before making the call.
    Our goal is to from within the database to execute tkprof on a
    raw trace file then load both files into clobs in a table. We can load
    the raw trace no problem, we just cannot figure out how to execute
    tkrprof on the raw trace then load its output.
    Anyone know if this is possible to hava java get a runtime and then call
    an environment file to source the environment so that path's and other environment variables are set prior to executing another system command.

    Thanks for that...but can I do multiple edits in my Stored Procedure Vaibhav and pass back something that I can then utilize in my SSIS? For example...
    One and Only one Member Span...so I'd be doing a SELECT COUNT(*) based on my match criteria or handle the count accordingly in my Stored Procedure and passing something back via the OLE DB Command and handling it appropriately in SSIS
    Are there "Diabetes" claims...again probably by analyzing a SELECT COUNT(*)
    Am I expecting too much from the SSIS...should I be doing all of this in a Stored Procedure? I was hoping to use the SSIS GUI for everything but maybe that's just not possible. Rather use the Stored Procedure to analyze my stged data, edit accordingly, do
    data stores accordingly...especially the data anomalies...and then use the SSIS to control navigation
    Your thoughts........
    Could you maybe clarify the difference between an OLE DB Command on the Data Flow and the Execute SQL Task on the Control Flow...
    You can get return values from oledb comand if you want to pipeline.
    see this link for more details
    http://josef-richberg.squarespace.com/journal/2011/6/30/ssis-oledb-command-and-procedure-output-params.html
    The procedure should have an output parameter defined for that
    I belive if you've flexibility of using stored procedure you may be better off doing this in execute sql task in control flow. Calling sp in data flow will cause it to execute sp once for each row in dataset whereas in controlflow it will go for set based
    processing
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Making a system call

    When I make a system call of the sort
    Process theProcess = Runtime.getRuntime().exec(*my command here*);
    Does the thread wait for the command to be executed, or does it keep on executing subsequent lines of code?

    Does the thread wait for the command to be executed, or does it keep on executing subsequent lines of code? Write some simple test code and then report the results back here.

  • Making Palm System calls using J2ME

    Hi is there anyway where I can use the old KJava API or even the J2ME to make system calls such as
    DmFindDatabase(0,"Something")
    SysAppLaunch(0,dbID,0,cmdPrintChars,theChars,&result);
    axlrose82

    [axlrose82],
    At the moment, we are quite certain that the kVM for the PalmOS do not contain any API that allows a developer to make system calls to the PalmOS itself. The CLDC/MIDP specification does not specify any native system calls access any of the native apps. I can see from your code that you are trying to access the Palm database but I'm afraid you are out of luck with the current specs.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • On IPhone 5S, when making cell calls, it connects to FaceTime.

    On IPhone 5S, IOS 7.1.2, when making cell calls, it connects to FaceTime.

    Hey there siteshop,
    It sounds like you are still hearing the phone line ringing even after the person you call answers the line. I would try the troubleshooting outlined in this article:
    iPhone: Troubleshooting issues making or receiving calls
    https://support.apple.com/kb/TS3406
    Toggle airplane mode: Tap Settings > Enable Airplane Mode, wait five seconds, then turn off airplane mode.
    Ensure that your software is up to date:
    Check for a carrier settings update.
    Check for an iOS software update.
    Note: Some updates may require a Wi-Fi connection.
    If the iPhone has a SIM card, reseat the SIM card.
    If the iPhone 4 or iPhone 4s is on the Verizon network, dial *228 from the iPhone and select option 2 to update the Preferred Roaming List (PRL). The PRL determines the cellular towers the phone uses for cellular service, selecting those with the best signal strength.
    Reset the network settings: Tap Settings > General > Reset > Reset Network Settings.
    Try to make or receive calls in another location.
    Attempt to isolate to one network band:
    If you're having the issue on LTE, disable LTE, if possible, and try again.
    If you're having the issue on 3G/4G, disable 3G/4G, if possible, and try again.
    Contact the carrier to check the following:
    Your account is properly configured to use the specific iPhone that has the issue.
    There are no localized service outages.
    Your account doesn't have a billing-related block.
    Your calls don't have errors on the carrier system.
    Restore the phone as new.
    If the above steps don't resolve the issue, go to an Apple Retail Store, carrier, Apple Authorized Reseller, or contact AppleCare to send the phone in for service.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Quiet down OSX when receiving/making a call on mobile phone

    Hi everyone,
    I want to write an application in JAVA which will quiet down the system volume when I am either receiving or making a call on my Nokia E66 mobile phone.
    Where can I read up on what I have to do to get my mobile phone to broadcast that information to my Mac?
    Hints and Tips are appreciated,
    DodoFXP

    I've used an application named 'Romeo' that works via Bluetooth to allow the type of interaction you describe.
    No idea how it works under the hood, other than the obvious, but it may help with examples, etc.

  • Why is my backlight display lit for only 5 seconds while making a call (Brightside phone)

    When I go to settings, I see that it is set for 2 minutes and indeed it does stay lit for that amount of time if I am not making a call, but as soon as I dial a phone number and especially when I get into an automated menu system where I need to press 1 to get to a different menu and then other numbers to finally get to talk to someone, the display goes black. I have tried swiping the screen which does not help. The only thing that I can do is press the curly arrow that points to the left to have the display light come back on for another 4 seconds, then press the button called keypad and hurry and press a number to continue with the menu system.
    I talked with Verizon and was told can do a complete reset, but I don't want to lose my contacts.  I went to backup assistant online but keep getting the arrows that go around and around forever and won't let me see if they are backed up. I want to view my contacts online and I want to print them. What's wrong with that site?
    I will say this. Do not buy the Brightside phone. It is not a smart phone. It's  a touch phone and when you touch anything, things come on like the camera or makes calls to my favorite contacts. sheesh!  I can't wait until our contract with Verizon is over with.

    I just bought the phone yesterday and have noticed the same issue. The verizon guy i just spoke to said that needed to be fixed, so he transferred me to Samsung tech support. I'm waiting for them to pick up . . .
    Okay, spoke to a very nice person who concluded that this was not an option that could be adjusted.  The light apparently stays on for about 6 secs.
    I was hoping it could be changed, so that's disappointing, but the reason it goes dark makes a lot of sense: it keeps you from hitting buttons accidentally while you're on the phone, so you can hold the phone in your hand, to your ear, etc. without worrying about activating something unintentionally. Also saves battery.
    Hope this was helpful.

  • Quotes in parameters to a system call

    Hello,
    From my program, which is a servlet, I'm making a system call using -
    (Runtime.getRuntime()).exec(cmd).waitFor();
    where cmd is a previously defined String giving the call to execute. The problem here is seen when the parameters to cmd (which happens to be a perl script in this case) include one or more where the values are strings which include spaces, and hence are in double quotes. For example, if I want to execute -
    /usr/local/bin/myScript.pl -t "Some text"
    When executed from a prompt this works fine and -t has the value -
    Some text
    However when called from my Java program as above, the script instead thinks that -t has the value -
    "Some
    I'm not sure how this is coming about, but it seems to be a feature of the way Java executes the command. Has anybody seen this before? How do I stop it happening? I have tried every combination of quotes of which I can think, but nothing seems to do what I want, and the command string when printed to screen, for example, looks exactly as it should.
    Thanks,
    Joe Partridge

    Or sat all separate parts in String[] like this:
    String[] cmds={"/usr/local/bin/myScript.pl","-t","Some text"}
    and call:
    (Runtime.getRuntime()).exec(cmds).waitFor();
    That also works and you don't have to remember to put quotes all the time
    Gil

  • Write system call results to a text box

    I am making a DOS system call that creates a file. Once this file is created it gives me a "packet created successfully" message that is written to the screen.
    I am using Netbeans 5.5.1 and Swing. and I want this message to be output into a JtextArea. The system call works fine and the file is created, I just can't get the message to write to my text area.
    Below is a sample of my code:
    private void btn_importActionPerformed(java.awt.event.ActionEvent evt) {                                          
    // TODO add your handling code here:
         String Rep = txt_Repname.getText();
         String Work = txt_Workdir2.getText();
         String VOB = txt_VOBtag.getText();
         String VOBstorage = txt_VOBName2.getText();
         String Replicapath = txt_Replicapath.getText();
         String command = ("cmd /c multitool mkreplica -import -npreserve -nc -vreplica " + Rep + " -work " + Work + " -tag \\" + VOB + " -vob " + VOBstorage + " " + Replicapath);
         StringBuffer sb = new StringBuffer();
         Process p = null;
         try {
                p = Runtime.getRuntime().exec(command);
            } catch (IOException ex) {
                ex.printStackTrace();
        Scanner s = new Scanner(p.getInputStream());
        while(s.hasNextLine()) {
            sb.append(s.nextLine()+"\n");
        String result = sb.toString();
        txt_Importresults.setText(result);
        }           

    This works okay for me.
    import java.io.IOException;
    import java.util.Scanner;
    public class Tester {
         public static void main(String[] args) throws IOException {
               StringBuffer sb = new StringBuffer();
              Process p = null;
              try {
                     p = Runtime.getRuntime().exec("HELP");
                 } catch (IOException ex) {
                     ex.printStackTrace();
             Scanner s = new Scanner(p.getInputStream());
             while(s.hasNextLine()) {
                 sb.append(s.nextLine());
                 sb.append(System.getProperty("line.separator"));
             System.out.println(sb.toString());
    }Have you read the Traps article on JavaWorld?
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Unix System Calls using Java

    Hi!
    Can anyone tell me how to do Unix System Calls in my Java program?
    If possible please give me the java code for it taking one unix system call as an example.
    Thanks in advance
    Raj

    do you mean firing off a shell command, or making actual kernel API calls or C library calls?
    for shell commands, have a look at Runtime.exec(). for kernel calls, use JNI. the JNI FAQ mentions something called "shared stubs" that may be of use:
    http://java.sun.com/products/jdk/faq/jnifaq.html
    cheers,
    p

  • Work Process tries to restart but fails - Operating system call fork:restar

    Hi
      We have a ECC 5.0 system running on v5r4 (6.40 kernel level 159).  Some of the work processes fail and then try to restart and fail again. Thus there are many job log entries in both SAP and OS/400.
    The OS/400 logs mention the PASE (unix executable environment) and MCH3203.
    SAP mentions Operating system call fork:restart
    OSS has note #884359 which mentions a palitative but despite being at 6.40 level 159 the parameter profile as/4/wp_max_restart is said to be "unknown" by RZ10.
    We are making sure we are up to date with the APAR II14126 just in case this is the issue.
    It did start after the time change but we are not sure this is the root cause.
    We are also considering getting upto kernel 171.
    Anyone else seen this issue?
    thanks
    Matthew Milne

    We see those problems once a while, and usually they are gone when you restart the instance or after an IPL. You should report the problem to IBM, they will probably be interested in the LIC log entries that come along with the error (STRSST - Start a Service Tool - Licensed Internal Code Log). II14126 is probably a good start (for example, MF40759).
    The profile parameter as4/wp_max_restart is only known to the kernel, because it is not intended as a permament setting, but only as a temporary workaround for the problem in the PASE environment. That's why RZ11 does not know about the parameter and reports it as unknown.
    Kind regards,
    Christian Bartels.

Maybe you are looking for