Mount an AFP or SMB then run an app from it

Hi everyone.
My problem:
I need to mount an AFP or an SMB share and then run a .app from it.
I then add this to the login items and it runs at login.
The .app can be located on our xserve or windows server.
I have tried:
mount_smbfs
But this causes errors in mounting and wont delete the folder it creates for itself and when other users log into the machine it will not run the app.
Any help would be great!
Thanks,
Matt.

Hi TT,
Yes I want to add an application that is located on a network share to the login items.
User Accounts are set up in Active Directory.
There is an OD master on our xserve that connects to AD for authentication.
Kerberos is disabled on xserve.
Guest access can be enabled to the share.
I have tried the following in an applescript:
tell application "Terminal"
activate
do script "open afp://USERNAME:PASSWORD@SERVER/APPNAME.app"
end tell
With AFP or with SMB - both don't work.
Tried another applescript for finder:
tell application "Finder"
mount volume "afp://USERNAME:PASSWORD@SERVER"
end tell
then the terminal command after that to open the app.
Doesn't work either.
I'm confused :S
Thanks,
Matt.

Similar Messages

  • How do I find the report server name, and then run paper report from forms?

    How do I find the report server name, and then run paper report from forms?
    I am having a problem running report 9i from forms 9i (see below thread). How do I find out the name of the report server? I checked my C:\ids\reports\conf directory but don't see anything that gives me the name of the reports server. I also don't have a iashome directory.
    Also, I just want to run the paper report (not the web version).
    Thanks.

    Hi,
    please read teh Forms / Reports integration paper in teh Collateral section for Oracle9i Forms at otn.oracle.com/products/forms
    In summary, you have to create an external Reports Service that you can then give a name.
    Frank

  • Hi I am new on the Mac, I need help, how can I run my apps from my library on my Mac Pro?  All my apps I was used in my iPad, thanks guys!!!!

    Hi I am new on the Mac, I need help, how can I run my apps from my library on my Mac Pro?  All my apps I was used in my iPad, thanks guys!!!!

    The Mac OS X and iOS versions are separate products

  • Run multiple apps from one browser windows with 9ias r2

    We are running 9ias r1 with forms 6i as our production server. Users are able to access one html page with multiple links to their applications. They can run one application, keep it running, navigate back to the html page and run a second application.
    We are testing 9ias r2 with forms 9i, but when users try to navigate back to the html page to run the second application the first application closes.
    Is there a way to have 9ias r2 work the same as r1 and allow users to run multiple application from one html page?

    Hi,
    Thank you for posting in Windows Server Forum.
    You can take rdp of server 2012 R2 from Fedora Linux desktop by running Yum command or Gnome rdp support. Please check below article for information.
    1.  How to Use Remote Desktop (rdesktop) in Redhat/Fedora/CentOS
    2.  Remote desktop from Linux to windows using rdesktop and gnome-rdp
    3.  XRDP Installation: An Easy Remote Desktop Setup for Linux
    Note:
    Microsoft is providing this information as a convenience to you.
    The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • How to run iphone apps from desktop? is it Possible???

    Hello,
    I was wondering if it was possible to run iphone or itouch app's from your desktop? maybe as a widget might work also.
    Many have purchased loads of App's from iTunes store and possibly one day may not have a iphone or itouch in there future, hate to loose all those great app's.
    Would apple or someone release a program that would let you run the App's on your desktop or even better maybe have iTunes be able to run those App's?
    Just a thought, Sound off if this may be a interest to you!!!

    No, sorry, it's not possible (not for users, anyway; developers have a "simulator" where some application functions can be tested on the development computer, but only a subset of functions work).
    Whether this is something Apple would make possible in the future, no one here can say. You can provide Apple with feedback on the issue here:
    http://www.apple.com/feedback

  • Running 64b apps from chrooted 32b (e.g. ktorrent64 from firefox32)

    I run arch64 with chroot for some 32 bit applications (did like the wiki http://wiki.archlinux.org/index.php/Arc … bit_system).
    I'm new to arch and to 64 bit architecture (just two days!).
    I run firefox @ 32bit for flash and java plugins.
    When I try to open a file from firefox32, it won't find the application because searches in the 32 bit environment.
    For example I want to click on a torrent file and say "open with ktorrent" (where of course ktorrent is installed in the 64 bit environment), or click on a tar.gz and say "open with ark". Let's use this last case as an example.
    I succeeded to do it up to a certain point, but I miss the final one, so please help me to find the solution! The basic idea is chrooting from the 32 bit environment to the original 64 bit one.
    This is what I did:
    1) I created the directory /opt/arch32/opt/arch64 (to say the truth I did'n put the "/opt"s, but I will discuss as if I did to follow the wiki's notations
    2) I added a "mount" and an "umount" line to  /etc/rc.d/arch32 rc
    #!/bin/bash
    . /etc/rc.conf
    . /etc/rc.d/functions
    case $1 in
    start)
    stat_busy "Starting Arch32 chroot"
    mount --bind /proc /opt/arch32/proc
    mount --bind /proc/bus/usb /opt/arch32/proc/bus/usb
    mount --bind /dev /opt/arch32/dev
    mount --bind /dev/pts /opt/arch32/dev/pts
    mount --bind /dev/shm /opt/arch32/dev/shm
    mount --bind /sys /opt/arch32/sys
    mount --bind /tmp /opt/arch32/tmp
    mount --bind /home /opt/arch32/home
    mount --bind / /opt/arch32/opt/arch64 #ADDED LINE
    add_daemon arch32
    stat_done
    stop)
    stat_busy "Stopping Arch32 chroot"
    umount /opt/arch32/proc/bus/usb
    umount /opt/arch32/proc
    umount /opt/arch32/dev/pts
    umount /opt/arch32/dev/shm
    umount /opt/arch32/dev
    umount /opt/arch32/sys
    umount /opt/arch32/tmp
    umount /opt/arch32/home
    umount /opt/arch32/opt/arch64 # ADDED LINE
    rm_daemon arch32
    stat_done
    restart)
    $0 stop
    sleep 1
    $0 start
    echo "usage: $0 {start|stop|restart}"
    esac
    exit 0
    3) I installed dchroot inside the 32bit environment and then added the line
    arch64 /opt/arch64
    to /opt/arch32/etc/dchroot.conf
    4) I created and made executable the script /opt/arch32/usr/bin/ark64
    #!/bin/bash
    dchroot -d "ark $@"
    Now, this system works from the command line, for example I can do, from inside the 32bit environment,
    ark64 file.tar.gz
    but I don't know how to let it work from firefox. I guess I have something to change in the ark64 script, but I don't know what.
    Another issue: if I do "chroot /opt/arch32" and then "chroot /opt/arch64", my home directory is empty. Maybe I should have added some other mount and umount lines? I'm a little scared of this, because I don't know what will happen of the content of my home directory when I stop the arch32 daemon.
    Last edited by alcafar (2008-03-26 13:44:10)

    Ibex wrote:Is it possible to do on a .tar.gz "open with" and then select the ark64 executable script? So that firefox tries to open the .tar.gz with the ark64 script.
    Yes, it is.
    Respect to my previous post, I modified /etc/rc.d/arch32 to mount also the home directory in the arch64 chroot (I have /home on a different partition than /):
    #!/bin/bash
    . /etc/rc.conf
    . /etc/rc.d/functions
    case $1 in
    start)
    stat_busy "Starting Arch32 chroot"
    mount --bind /proc /opt/arch32/proc
    mount --bind /proc/bus/usb /opt/arch32/proc/bus/usb
    mount --bind /dev /opt/arch32/dev
    mount --bind /dev/pts /opt/arch32/dev/pts
    mount --bind /dev/shm /opt/arch32/dev/shm
    mount --bind /sys /opt/arch32/sys
    mount --bind /tmp /opt/arch32/tmp
    mount --bind /home /opt/arch32/home
    mount --bind / /opt/arch32/opt/arch64
    mount --bind /home /opt/arch32/opt/arch64/home
    add_daemon arch32
    stat_done
    stop)
    stat_busy "Stopping Arch32 chroot"
    umount /opt/arch32/proc/bus/usb
    umount /opt/arch32/proc
    umount /opt/arch32/dev/pts
    umount /opt/arch32/dev/shm
    umount /opt/arch32/dev
    umount /opt/arch32/sys
    umount /opt/arch32/tmp
    umount /opt/arch32/home
    umount /opt/arch32/opt/arch64
    rm_daemon arch32
    stat_done
    restart)
    $0 stop
    sleep 1
    $0 start
    echo "usage: $0 {start|stop|restart}"
    esac
    exit 0
    I created an executable script /opt/arch32/usr/bin/run64.sh
    #!/bin/bash
    cmd=`basename $0`
    for i in "$@"
    do
    cmd="$cmd '$i'"
    done
    exec dchroot -d "$cmd"
    and created some links
    ln -s run64.sh ark
    ln -s run64.sh ktorrent
    ecc.
    Now in firefox32 you can do for example on a tar.gz file "open with /usr/bin/ark".
    It works also if the file name contain spaces, but not if it contains other characters that need to be escaped in bash, for example [ or ].
    It's just a scripting issue now.
    I read your other thread about compatibility mode, sounds interesting, I'll read something in the weekend.

  • General Failure - Running DBASE App from Netware on Windows

    Hi all,
    Our company database is coded in DBASE 5 and is hosted on Novell Netware 6.5 servers.
    Our users have always used MS DOS PC's with the novell client to run the application but recently we have began testing the application running under windows XP CMD prompt after connecting using Novell Client.
    For the most part everything works however we are experiancing a problem on XP that doesn't exist when run on the MS DOS PC's.
    Basically when the app tries to run the DBASE USE / FILE commands on a file that the user doesn't have access too a general failure (CANCEL, IGNORE, RETRY) is shown. Strangely if the user hits CANCEL / IGNORE the correct result is returned e.g. FILE returns .F.
    The above problem doesn't occur on MS DOS!
    After testing it seems that the windows PC somehow 'knows' the file is there and tries to access it and then fails - could this be the case?
    Other windows commands such as DIR / MOVE etc return "A device attached to the system is not functioning"
    Any ideas on any settings we can change to prevent this from happening?
    Thanks
    Robbie

    Robbiecookie101,
    > Just to add to this. I have done some more checks and it definitely
    > seems that the system knows there is a file there even though i have no
    > rights to it. If i try to use a file in dbase file in a subdirectory i
    > do not have rights to, i get the general failure error. If i do the same
    > to a file that doesn't exist in the same directory then i get the
    > standard file does not exist error. Is there some way that the client
    > knows that there are files there even though i do not have rights to
    > them and they do not show in a a dir?
    The reason why you cannot access it is because another client has opened
    it and has exclusive access to it. In the old days you had to flag such
    files as "shareable" with the flag command, but I have not had to use that
    for decades..
    Anders Gustafsson (NKP)
    The Aaland Islands (N60 E20)
    Have an idea for a product enhancement? Please visit:
    http://www.novell.com/rms

  • Running Mac apps from the Unix command line

    I hope I don't offend Mac lovers with this question, but as a total Mac newbie, I find Finder cumbersome. This may change as I learn all the features and keyboard shortcuts. but I don't think so. I've been playing with computers for 40 years and Unix for 30 and I know what I like. I like a command line interface, and prefer to avoid the point and squint interface to the extent possible.
    I'd prefer to run everything from the shell, and not finder. So to run safari, I'd like to do something intuitive (to me, at least) like type ...
    bash# safari
    ... instead of marching around in Finder or using the dock and the mouse.
    Can any of you Mac hackers give an old Unix hacker a pointer to a clue?

    Yes, I'm way too cheap to buy the book. I can't imagine how much I've saved over the years, always being way too cheap to buy the book. Easily enough to pay for the spiffy new computer.
    No Windoze experience? You may think you do, but really, you don't know how lucky you are. My Vaxen ran 4.1 BSD though 4.3 BSD. I've played with a lot of flavors of unix. My favorite flavor in recent years has been FreeBSD, so I began paying close attention to the Mac since OS X.
    X11 and Xcode were the first things I installed. I've been poking around, reading the docs, and getting a better handle on it all. I've only scratched the surface of the stuff on your pages, and it's been most helpful. There's good stuff there for unix newbies too.
    If it were not for Jerry Garcia, I probably never would have had the stones to open my mouth in front of a microphone.

  • [solved]can't run java apps from command line

    Every Java program that i've tried to run from command line gives me a error message like this:
    augusto java% java Test
    Exception in thread "main" java.lang.NoClassDefFoundError: Test
    Caused by: java.lang.ClassNotFoundException: Test
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: Test. Program will exit.
    `java Test.class` doesn't work too.
    but, the exact same code work from eclipse, am I missing something?
    Some info:
    % ls Test*
    Test.class Test.java Test.java~
    % cat Test.java
    public class Test{
    public static void main(String[] args){
    System.out.println("doesn't work");
    % echo $PATH
    /home/augusto/.bin:/home/augusto/.bin:/home/augusto/GNUstep/Tools:/opt/GNUstep/Local/Tools:/opt/GNUstep/System/Tools:/bin:/usr/bin:/sbin:/usr/sbin:/opt/java/bin:/opt/java/jre/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/qt/bin
    Last edited by hack.augusto (2009-10-27 00:57:53)

    also make sure that you current directory is in your classpath.
    eg
    export CLASSPATH=".:$CLASSPATH"
    java Test
    your issue is more likely to be classpath related, as java doesn't read the path variable, and the java executable is found
    Last edited by bruce (2009-10-27 01:02:51)

  • Error 500 Internal Server Error When trying to run an app

    Greetings,
    I'm trying to figure out how to fix this issue when I'm trying to run an app from JDeveloper 10.1.3.3.0.
    This is my problem
    1st of all it JD compiles everything great
    http://img163.imageshack.us/img163/6589/compiling.jpg
    2nd
    The embedded server seems to works
    http://img856.imageshack.us/img856/1231/runingserver.jpg
    3rd
    Everything crash!
    http://img14.imageshack.us/img14/4301/internalse.jpg
    JDeveloper doesn't shows any error. Same problem when trying to Debug
    I'm using an oracle DB 10g which is in a different computer (in a server)... any guesses?
    Thanks in advance!
    -Fury

    what URL you are trying to run ?
    did you try to run on different computer ?
    Jdev 10g is quite old now and i dont think it supports JSPX pages (i saw jspx extension in your deployment)
    Zeeshan

  • How to run apps from itune on my iMac

    i downloaded some of the apps from itune store but they are not opening in my imac why is this?

    Buy an iPhone or iPad to run iOS apps from the iTunes store.
    Got to the Mac App Store for OSX apps for your iMac.

  • Problem running Automator .app on different machine

    Hello,
    I have written an Automator application (QuitTunes.app) that resides on my Mac No 1 machine. It quits iTunes when invoked for my Mac No 1.
    I have another Automator application (RunQuitTunes.app) that resides on my Mac No 2 machine. It runs QuitTunes.app which is located on Mac No 1.
    When I run RunQuitTunes.app from Mac No 2 both apps run, but the problem is that iTunes quits on machine Mac No 2 instead of Mac No 1.
    Any ideas....
    Thanks

    Hi, sorry.. i was a little busy..
    i tried a simple hello world, and it DID work..
    is there anything i need to take into account for
    vista?

  • [AUTO-SOLVED] Run an app as privileged user

    Im preparing a package for an app that uses libpcap and requires administrative rights to run properly.
    Currently, the .desktop file for launching this app contains something like this:
    gksudo mono /foo/bar/app.exe
    But it looks like in the moment the app is going to make use of the libpcap library, the rights get lost and the app just force closes...
    I don't know if this is the best procedure for doing so, but certainly, if i run from a terminal:
    sudo mono /foo/bar/app.exe
    I get the expected results and behaviour....
    Can anyone help me?
    EDIT: Looks like I found the source of the issue.
    If i want to run this app from console, i first have to cd inside of the same dire the .exe is located... so, how to put this into a .desktop file?
    Thanks
    EDIT #2:
    Path=/foo/bar
    inside the .desktop file ...... this did the trick
    Thanks!!!
    Last edited by Xi0N (2011-12-13 23:12:53)

    Im preparing a package for an app that uses libpcap and requires administrative rights to run properly.
    Currently, the .desktop file for launching this app contains something like this:
    gksudo mono /foo/bar/app.exe
    But it looks like in the moment the app is going to make use of the libpcap library, the rights get lost and the app just force closes...
    I don't know if this is the best procedure for doing so, but certainly, if i run from a terminal:
    sudo mono /foo/bar/app.exe
    I get the expected results and behaviour....
    Can anyone help me?
    EDIT: Looks like I found the source of the issue.
    If i want to run this app from console, i first have to cd inside of the same dire the .exe is located... so, how to put this into a .desktop file?
    Thanks
    EDIT #2:
    Path=/foo/bar
    inside the .desktop file ...... this did the trick
    Thanks!!!
    Last edited by Xi0N (2011-12-13 23:12:53)

  • Forcing afp over smb for default file mount

    Looks like Leopard is defaulting to using smb, to mount network shares -- even IF the machine is a Mac! Here is my setup:
    - iMac 2.8Ghz as "client" (Leopard)
    - Mac Mini C2D as "server" (Tiger)
    - Both connected to the same Netgear GigE switch, both showing GigE as connection speed.
    On my client, I see the shares on the server and mount them by entering my password. Copying files, via smb, isn't that fast (~20MB/sec). Once I use Apple-K to force an afp mount, the file transfer is ~50MB/sec.
    Is there any method to force Leopard's Finder to default afp for a Mac to Mac connection? Seems very weird that the default is smb when the machine is 100% Apple/OSX.

    Alrite, have a little more testing done with this setup. As R-C-R has kindly pointed out, I should break it down one at a time. Here is what I did:
    - Mount the share, via the Leopard sidebar
    - Mount the share, via Command-K
    Mounting via the sidebar shows this via bash:
    imac:/ vash$ mount
    /dev/disk0s2 on / (hfs, local, journaled)
    devfs on /dev (devfs, local)
    fdesc on /dev (fdesc, union)
    map -hosts on /net (autofs, automounted)
    map auto_home on /home (autofs, automounted)
    /dev/disk0s3 on /Volumes/Untitled (ntfs, local, read-only, noowners)
    afp_393tmw0008OL0000oM0000VU-1.2e000007 on /Volumes/vash (afpfs, nodev, nosuid, mounted by vash)
    imac:/ vash$
    YES! It is mount via afp. My immediate assumption was wrong. Let's benchmark copying 2.78gigs from the mini to the imac: max of 32MB/sec. Why that speed? I haven't a clue, but that's the current speed using the Leopard sidebar to mount.
    Disconnect all of it and mount via Command-K. Here is the cli output:
    imac:/ vash$ mount
    /dev/disk0s2 on / (hfs, local, journaled)
    devfs on /dev (devfs, local)
    fdesc on /dev (fdesc, union)
    map -hosts on /net (autofs, automounted)
    map auto_home on /home (autofs, automounted)
    /dev/disk0s3 on /Volumes/Untitled (ntfs, local, read-only, noowners)
    afp_393tmw0008OL0000oM0000VU-1.2e000009 on /Volumes/vash (afpfs, nodev, nosuid, mounted by vash)
    imac:/ vash$
    Same 2.78GB copy maxed out at 78MB/sec.
    My first conclusion of smb vs. afp is dead wrong. Sidebar vs. Command-K mounting is definitely different.

  • Users are unable to login (HD is located on an AFP or SMB server message)

    I've searched on here, but nothing I've tried helps.
    This is only happening on certain machines in a building. They have all been re-imaged multiple times. Other machines in other buildings running the exact same setup work fine. It's a 10.4.7 client trying to login to a 10.3.9 server. They get the AFP or SMB error message. They can go to another machine in the building, and login, so it's not their account.
    The only thing that I've found will temporarily fix the problem is restarting the server. Right after it comes back up, they can login fine.
    I've triple checked their account settings, created brand new user accounts, we've re-imaged the machines, changed computer names (worked for half a day), trashed the DCHPleases file on the server, ran all updates on both clients and server.
    Help me!!!
    MacBook   Mac OS X (10.4.7)  

    This error msg means that the users area is stored on an AFP volume, ie the server which needs to be mounted onto the client mac before the user logins.
    What happens is the server boots up, and has share points, /Users for users area. the client then boots up and automounts this volume as /Network/Servers/servername/Users or close to that.
    Then a user logs into the login window, the server authenitcates the user and tries to grant them access to the Users volume, if this volume has been unmounted then they user cant get access to thier home folder and thus cant login
    This could be caused by network issues, switches, hubs, etc and the client has been cut off from the server, a reboot of the client mac should fix the issue. Then check your switches or hubs

Maybe you are looking for

  • No default applications to open items with varied extentsions

    Not being the most technologicaly advanced human here...I repeeatedly am unable to open downloaded files with any extensions other than the basic ones. Right now there are desktop files with .asf, .exe,.wmv extensions that when I try to open them I g

  • PLS-00306 wrong number or types of arguments in call to 'PUT_LINE'

    Hi Guys, I'm practising the plsql workouts,during a anonymous PL/SQL block i got the below error,what the mistake i did ? declare v1 employee_290512%rowtype; cursor c1 is select * from employee_290512; begin open c1; loop fetch c1 into v1; exit when

  • Switch statement trouble in an Applet

    Hello everyone. I am attempting to get a Button to work in an applet. This applet tells and stores jokes. There are two String arrays being used to store the jokes. There are also two buttons being used. (One to tell the jokes - the second to tell th

  • HT1386 Where do you drag and drop playlists onto iphone in new itunes

    Where do you drag and drop playlists onto iphone in new itunes

  • Creating TPR for customized table

    Hi, I want to create transport a customized table to QA from Dev box. I know how to create transport request for reports and smartforms and all. But How do I create transport request for customized table ? Is it thorugh SM30 ? Please help me...