Accessing Shell script form Safari

Hello All,
I have a shell script that i use for rdp. At the moment when i run "connect.sh rdp://myserver" from command line, it works perfectly calling rdesktop and querying the authentication servers.
However i have been trying to use the automator (Utilities > Run Shell Script) to allow me click on rdp links on webpages but i cant seem to get it to work.
Please can anyone help with this?
Thanks

I'm not sure if I understand your reply about my response. But perhaps you'll find the "sudo" command helpful, which unlike the "su" command, will prompt the users for their own password, or no password according to /etc/sudoers. You use the "visudo" command to edit the file. The sudo command is normally used to run system administration tasks, without giving the user the root password but it can also be used to give access only to certain commands. The -u option causes sudo to run the specified command as a user other than root. I have not used "sudoers" for anything else but root, but there are plenty of examples and tutorials on the web that might help you.

Similar Messages

  • Downloading shell scripts with safari changes filename

    Hi,
    When I download a shell script using Safari, the file is saved with a ".sh" at the end, even if the file doesn't have any extension. Is there a way to have Safari just same the file with the original filename and not add the ".sh"?
    Thanks,
    Allan

    Interesting that Safari even knows what a shell script is. Its just a text file, with the user's executable bit set. Curious. Does Safari assume any executable text file is something that should be run from the shell? That would be strange, as anything I pull off my FAT32 drive has the executable bit set, too (thanks, Windows).

  • Execute a unix shell script from forms9i

    Hi ,
    I would like to execute a unix shell script form a form when they pressed a button. The forms server is on Linux machine. I tried but when I pressed the button nothings happen. Could some one please help me how I could get working.
    Is there is a way I could execute the unix shell script from PL/SQL proceudre or package.
    Please some one help me.
    Bain

    You would not expect to see anything happening because the
    script cannot directly send output to the web form. However, you can get it to write output to a file and use web.show_document in the form after the host command to display the file and see the output.

  • Call Form using Shell Script

    Hi,
    Is it possible to call the 10g form through Shell Script.
    If so,Can you tel me the Procedure how to cal the form.
    Thanks,
    Gany

    Don't think so...
    Still? Suppose that were possible, what would you expect to do? You mean to launch a form on the client workstation? A form normally opens in the Forms applet, that is launched from the web browser. So, to run a form, you need to access a web-page that launches that form.
    Only rather old versions of forms (those previous to 6) do have a runtime that runs on the operating system and not through an applet that communicates with the application server.
    I believe the call_form and open_form commands in forms should suffice for all that one needs (eventually open_form('x_form',activate,session) ).

  • Executing a shell script from a web deployed form

    Hi there,
    i've got a web deployed form from which i want to execute a UNIX shell script upon clicking a button.. I've used the host command ,and the rsh utility in Windows NT but i'm getting an error message saying
    "machine address" Permission denied, rsh can't establish connection " this is the code in the when button pressed trigger
    HOST('c:\windows\system32\rsh <<machine address>> opt/apps/wmc/rw.ksh');
    the machine address being the unix machine i'm trying to connect to and the last part being the path and the shell script to be executed..
    can anybody help me out here ????
    Regards
    wole
    null

    Jim,
    Yes. Use the host command from forms and call the command rexec.
    Raymond
    null

  • Shell script for batch compilation of forms 10g on AIX 5.3L AS

    Hi All,
    Can anybody provide me the Shell script for batch compilation of forms 10g and reports 10g on AIX 5.3L AS?
    Regards,
    SAM

    Hi Alex,
    I tried with the below script as well as the one you had posted.
    ORACLE_HOME=/opt/oracle/OraHome_3
    export ORACLE_HOME
    TNS_ADMIN=$ORACLE_HOME/network/admin
    export TNS_ADMIN
    LIBPATH=$ORACLE_HOME/lib32:$ORACLE_HOME/jdk/jre/bin:$ORACLE_HOME/jdk/jre/bin/cla
    ssic:$LIBPATH
    export LIBPATH
    cd ../forms
    for i in `ls *.pll`
    do
    echo Compiling Library $i ....
    $ORACLE_HOME/bin/frmcmp module=$i userid=mydbuser/mydbuser@mydb
    batch=yes module_type=library
    compile_all=yes window_state=minimize
    done
    export ORACLE_HOME=/opt/oracle/OraHome_3
    export ORACLE_TERM=vt220
    export LD_LIBRARY_PATH=/opt/oracle/OraHome_3/lib:/opt/oracle/OraHome_3/jdk/jre/l
    ib:/opt/oracle/OraHome_3/jdk/jre/lib/i386:
    cd ../forms
    for i in `ls *.pll`
    do
    echo "Compiling Library $i ...."
    /opt/oracle/OraHome_3/bin/frmcmp module_type=form userid=mydbuser/mydbuser@mydb
    module=$i batch=yes compile_all=no
    window_state=minimize upgrade=no
    done
    echo "PLL Compilation done"
    But there was a same kind of error thst turning up all the time.
    Compiling Library Agf.pll ....
    Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
    Forms 10.1 (Form Compiler): Release - Production
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE 10.1.0.4.0 Production
    FRM-10043: Cannot open file.
    Form not created
    I hence updated the permissions on the pll as below
    -rwxrwxrwx 1 oracle oinstall 335872 May 19 16:31 Agf.pll
    But the problem is still persisting.
    My environment details are as below.
    I am working on Win XP machine. Connected to my AS via telnet and xmanager. I have set my DISPLAY to my local IP.
    Is there any thing more that I need to do? If so then let me know.
    Regards,
    SAM

  • Host in forms 10g and execute shell script

    Hi!
    I have a little problem. When I transfer form to AS through SSH protocol I want to automatically generate form on AS wit h code:
    declare
    lv_server_dir vc2() := /folder1/folder2;
    lv_file_name vc2():= a.fmb;
    host(lv_server_dir||'/ftp_gen.sh '||lv_server_dir||' '||lv_file_name);
    In file ftp_gen.sh is code:
    export ORACLE_HOME=myOracleHome
    export PATH=$PATH:$ORACLE_HOME/bin
    export TNS_ADMIN=$ORACLE_HOME/network/admin
    export SQLPATH=$ORACLE_HOME/dbs
    export NLS_LANG=SLOVENIAN_SLOVENIA.EE8ISO8859P2
    export DISPLAY=:2
    cd $1
    ./gen.sh $3
    When I execute this command on form nothing happens.
    What could be wrong?
    Thanx,
    Bojan

    Hi Bojan,
    Executing the HOST Command will execute in the Mid Tier and nothing will show up in the Client. (other than the form go into Blocking mode). Just check out whether the Operation you wanted to do in the Mid tier is done or not. (Here it looks like you are compiling a form. So, check out that the fmx is generated.)
    Alternatively to check out the proper execution of the HOST command, you can generate a file in the Mid-tier (on successful execution of the shell script) and read the file using TEXT_IO and display a message to user.
    HTH.

  • Shell script to start forms and reports server on reboot

    Does anyone have on shell script to automatically start up the forms and reports server on unix after a reboot?
    thanks much

    I also recompiled the "test.fmb" that came with the 10g Forms and Server on my windows xp machine and when I downloaded it back to the Linux Forms and Server machine, it loss the functionality of the "OK" button which is suppose to perform "exit_form" when pressed.
    BTW, I am using 10G developer suite on windows xp.

  • Need last [login, access, bind] time plugin and/or shell script

    Hi Gurus,
    I was wondering if anyone could share their pre-op bind plugin (and/or shell script) to store the last access time. We have a heterogeneous UNIX environment (Solaris, HP-UX, and Linux clients and Sun JES DS 5.2 on Solaris 9 as name service repository) and need to implement account suspension if the user has not logged in in the specified period.
    Thanks.

    Thanks for the reply, I've updated my OP with proper code tags.
    The g13 is a gaming keyboard https://wiki.archlinux.org/index.php/Logitech_G13
    I'm attempting to use the 'g13' outlined section
    I will look into udev rules, thanks again.

  • Accessing concurrent prg parameter values having space in shell script

    Hi, I have a CP that is tied to Host (shell script). One of the parameter values of CP contains spaces. When I print this parameter ($5) in shell script, space is taken as terminator and it parses it in mutiple postions, like if value is "Hello There" then $5 comes as "Hello" and $6 comes as "There"
    How do I access whole values including space as one parameter value?
    Regards,
    Harish

    Hi Ashutoosh,
    OS is SunSolaris 5.9
    My problems was that if I pass a value from concurrent program that has space and wanted to access that value in shell script as one parameter, it won't allow.
    I did anlaysis on this and I think for now, there is no way out. If I pass values from unix to shell script it works, because I will enclose in quotes.
    I removed the spaces while passing value from Concurrent program and was able to achieve what I wanted but its an work around.
    Thanks,
    Harish

  • Run a shell script from FORM

    Hi,
    Is there a way that we can run a shell script on UNIX box from ORACLE FORMS 4.5 running on client PC (OS=windows on client,
    DB on unix).
    Thanks in advance for help

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Anton Weindl ([email protected]):
    You can either use rsh or rexec (both available on windows). You will have to edit the .rhosts in the home directory of the unix user the script will be run under:
    <Client-Hostname> <USER>
    <USER> must match the Windows-User exactly.
    You can then execute the Shell-Script with
    host('rsh <HOST> -l <USER> sh <SCRIPT>',NO_SCREEN)
    Hope that helps
    Anton Weindl
    <HR></BLOCKQUOTE>
    Thank You Anton Weindl,
    It seems like the thing I want to use instead of the dbms_pipe.
    I tried to use rsh and gives me the following message
    command: "rsh taurus -l nileshs test.sh"
    where taurus is hostname and
    guest is unix username
    I am logged on windows 2000 with this name.
    "taurus permission denied:"
    "rsh can't establish connection"
    Let me know if I am missing anything.
    Thanks.
    null

  • How we can call or execute a SHELL script through Oracle forms or Reports

    How we can call or execute a SHELL script through Oracle forms or Reports.Its urgent.......

    Use HOST command.

  • How to prevent Automator's "run shell script" to create fully decomposed forms of my strings ?

    I am using Automator's "run shell script" and I am seeing that it outputs fully decomposed forms of my strings.
    For example, when I set the action to "echo été" in a service (with "Replace selected text" activated) and run that into a Textwrangler window, I'll get fully decomposed forms that Textwrangler won't understand. But when I simply type that command into Terminal, I get my string in composed form.
    The problem is not the display issue, but the fact that if I want to run grep for example in "run shell script", I will not be able to find the proper strings since the forms are different.

    Originally I was using $@ to parse a string and get the result pasted by the service. That was a while ago. There, I noticed that some Japanese characters were messed up. Basically all the kana characters that come with voicing markers like が-ga (instead of か-ka) etc. I did not have the time to pursue that issue though.
    Then, last night, I found that a colleague of mine had tried to use $@ to feed to a local dictionary application called ding (http://ftp.tu-chemnitz.de/pub/Local/urz/ding/). His problem was with characters that had umlauts. After verifying how he wrote his action I remembered that I had similar issues with Japanese.
    Basically his command was "/path/to/ding $@"
    That's supposed to use the selected string as an argument to pass to ding, which will launch a Wish application where the string is used as the searched item.
    From Terminal, that works a treat. But the exact same line in Automator (with input as argument, not as stdin) messed the composition and the resulting string was not recognized by ding as a match to what it was supposed to match.
    So, I tried a few things to get to the core of the issue and found that a simple "echo [accented characters]" was enough to reproduce the difference in string handling between Automator and Terminal. That difference is also reproduced on a number of person's machines.
    I have a number of services that basically revolve on "run shell script" actions and involve 3rd party application outputs, preference files etc. so it would not be convenient to show that to you.
    I have sent a mail about this issue to the automator list yesterday too:
    http://lists.apple.com/archives/Automator-users/2011/Jun/msg00004.html

  • Executing a shell script from a form (client / server)

    From a form in a client server environment, I would like to execute a shell script on the server.
    Environment:
    Server: SunOS 5.6
    DB : 8.0.5
    Forms : Developer 6 w/patch 6A
    Forms - 6.0.5.34.0

    Jim,
    Yes. Use the host command from forms and call the command rexec.
    Raymond
    null

  • Acess a collection form a  shell script

    can v access/assign the values stored in a collection to a unix shell script variable... without spooling....
    please let me know...

    > i. How many records can the variable MYVAR hold..is there a limt?
    I would expect so. Even if there is no theoretical limit (which I doubt in this case), there is still physical limitations ito memory.
    I would not use a shell variable to stuff in any large amount of data into. I would rather write that output to a file and then use a while read loop to process that file, one line at a time.
    > ii. If I have my collection in a plsql block ( as I return the records from a delete statement to
    the collection using the returning into... clause ) how can I pass the collection values to
    sqlplus.....
    You can use a PL/SQL function that returns that collection. E.g.
    create or replace myFunction( ..parameters... ) return TMyCollection is ..
    And then you can simply select from it via the SQL engine. E.g.
    select * from TABLE( myFunction( ..parameters... ) )
    However.. that said. I do not like anything much of this approach. Exactly what are you trying to achieve? And why use shell scripts to achieve that?

Maybe you are looking for

  • Macbook Pro (mid 2009) display glitch?

    Hello there, I own a 15" Unibody Macbook pro from mid 2009. I haven't had many issues with it until recently. I've had occasional overheating, and sleep problems within the last 6 months but I never got it checked. Yesterday, I opened my Mac from sle

  • SQL Developer, SQL Server and the ampersand

    Hello, I am connected to a SQL Server database (2008) and am having difficulty getting a query to run properly in SQL Developer (3.1.07). Simplified Example select table_field from table where table_field <> 'This & That'; Expected results table_fiel

  • Problem with SAP 7.10

    I've a problem with download to xlsf rom ALV GRID with SAP 7.10 Can I execute a patch download for resolve thi problem? Where I can find it? Best regards. Cristiano

  • File reference and Other ID field in an Invoice

    Hi In the invoice, instead of the Purchase order number user would like to populate with Tax Authorities Reference no. In german it is called "Aktenzeichen'. Was not able to find in the invoice can anyone let me know where can I find this field and o

  • Why does content conditionalized out still shows up in webhelp?

    Using RoboHelp HTML 7 I looked at my RoboHelp project for my product and discovered that an obsolete topic that appeared in library search results was in fact flagged with an Obsolete conditional tag. And my Conditional Build Expression explicitly sa