Java networking from windows to password protected unix server

How to execute unix shell scripts on a unix box which is password protected, from a java application running on windows? help for the solution

You need to know the password. Or set up ssh to use client certificates (read the manual page & google).

Similar Messages

  • How to disable Setting button in Tools - Options - Advanced - Network from windows registry?

    Dear support,
    Now, my office use Firefox as default browser to access WebServer. And there are some policy that users must use ProxyServer. I do not want user change proxy setting in Firefox. How to disable Setting button in Tools - Options - Advanced - Network from windows registry?
    Thank you.
    Treky

    You can not use the Windows registry to disable items in Firefox. This link shows how to lock down Firefox proxy settings, change the values to suit your needs:
    http://www.stbernard.com/ip5kb/iPrism/WhatsNew/50SupportFiles/SupportFiles/IP0460.htm
    One minor variation, in step 4 instead of adding that line to all-js, you can create a file called ''local-settings.js'' containing the line shown and save the file in the same folder as all.js

  • Running shell command from Java, but from Windows Schedule Task?

    I have a simple java program that will start a dos based program. The java program works great when I run it, but when I run it from the Windows Task Scheduler, the dox box that should pop up, does not. It is running because I can see it in the task manager but I can not see the command window.
    Any ideas how to show the command window from a java application that is ran from Windows Task Scheduler?
    Example program below. Runs fine by itself, should get a dos popup that issues the directory command, run it from the scheduler and it does not show the dos box. You can however see it in the Processes as CMD.exe.
    import java.io.IOException;
    public class Test {
          * @param args
         public static void main(String[] args) {
              try {
                   Runtime.getRuntime().exec("cmd /k start dir");
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }Now the my real program is quite a bit more complicated. It actually goes out and checks the status of an Oracle Database, if all the tablespaces are online, then the middle tier application is allowed to start. The middle tier application is started by my java application, and is comes up with a dos console which shows status and users connected to the database.

    Jag,
    Actually, the question of whether it works for me seems to depend on the version of the OS (or Oracle). On RedHat Linux (Oracle 8.1.6) it didn't work at all, but on Solaris (Oracle 9.0.2) it did. Here's the output from that run:
    SQL> /
    output of the command run:
    init.ora
    initDBPart9i.DBPSun01.ora
    initdw.ora
    lkDBPART9I
    orapw
    orapwDBPart9i
    spfileDBPart9i.ora
    Done
    PL/SQL procedure successfully completed.
    But, I did need to change a line of your code to this:
    Process p = Runtime.getRuntime().exec("/usr/bin/ls");
    your original was:
    Process p = Runtime.getRuntime().exec("ls");
    You might consider, if possible, use of some of the Java File classes instead of ls, as this might make things more predictable for you. There were some examples in oramag.com a few months ago, but they were pretty simple (you might not need them).
    Hope this helps,
    -Dan
    http://www.compuware.com/products/devpartner/db/oracle_debug.htm
    Debug PL/SQL and Java in the Oracle Database

  • Cant open over network from Windows to Leopard, but ok to Tiger

    Hi
    We have a number of Mac Pro's some running Tiger and others running Leopard. I can open any quicktime file over our network from a PC to any Tiger Mac, but not to a Leopard Mac. Why not? I can see the files I can open any other file type, just not QT. Copy the same file over to one of the Tiger Mac's and I can open it from the Windows PC. This would not be such an issue, but we are dealing with 1920x1080 uncompressed files and it is a real pain to move them.
    Get Error 43: a file could not be found
    Any suggestions would be appreciated.
    Cheers
    Tony

    Well outside help other than this list has solved this. Seems there is a bug in QT windows that if a QT file resides in a folder on the MAc with a name longer than 8 characters, it wont open over the network.
    ie. Running QT Windows 7.5 connecting over network to a Mac running leopard.
    FYI
    Tony

  • Launch Java App from Windows Desktop

    What's the best way to launch a Java application from a Windows XP desktop without the console showing?

    If your class Main.class is part of a package, you cannot invoke Main directly without providing the package. You may have to include the -classpath option (depending of the working directory). The default value for -classpath is "."
    You should try:
    javaw myPackage.Main
    (if the working directory is parent to directory 'myPackage')
    or
    javaw -classpath .;c:\xxx\xxx\. myPackage.Main
    "c:\xxx\xxx\" is your root package's parent directory. Note that you may have to double quote the specified path.
    For details:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html

  • How to create PDF from Excel with Password Protection Using Visual Studio & Visual Basic

    Could someone provide some VB code sample(s) to create a PDF file with password protection (Security Method - Password Security - Restrict Editing & Printing)?
    I create a bunch of reports every week using an Excel 2010 addin that subsequently must be printed to PDF.  I then have to manually edit the properties of each document in order to apply the printing restriction.
    I'm using Acrobat X.
    I've downloaded the SDK but have no idea which dll's to use or where to begin.
    Thanks!
    Ross

    That's surprising & disappointing.  I would have thought that this capability would have long since been requested.
    Thanks for the heads up.

  • Remote Desktop disconnected because of security error from Windows 8.1 Surface to Server 2008

    Hello,
    I am trying
    to connect to a remote app on a 2008 server from a surface pro 3 with 8.1
    through Netilla SSL VPN and I getting the following error message.
    Remote Desktop Disconnected
    Because of a security error, the client could not connect to the remote computer Verify that you are logged on to the network and then try connection again
    if I am connected to the network and use the RDP file, it connects fine.
    This
    was previosluly working, but when I changed the terminal server to per user
    license mode from trial mode this happen
    This works fine from Windows 7 machines.<o:p></o:p>
    Any ideas?
    Thanks,
    Derek

    Hi Derek,
    Thank you for posting in Windows Server Forum.
    From the error itself it seems that there is some network connection issue with VPN. Kindly see that you get network when you are using VPN connection, also VPN must be running. You can also try to “ping” the remote computer and see whether there is successful
    ping result.
    Also try to use “Allow connections from computers running any version of Remote Desktop” option on server side and check whether you can remote desktop successfully. 
    Apart this issue can also be caused due to certificate as VPN can’t resolve the certificate properly and facing this issue because you are facing issue only with usage of VPN (as you have commented). Please check
    this link for detail.
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community 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 Support, contact [email protected]

  • How to properly remove "Network" from Windows Explorer and Save Dialog boxes?

    I've recently rolled out Windows 7 and noticed that in some applications (Office 2003 - yes we are due for an upgrade - happening later this year), when a user clicks the down arrow in a "Save As" dialog box to view the available locations - a
    list of seemingly every computer in the broadcast domain is generated and displayed.  This takes about 30-45 seconds.  I don't want my users to be able to view a list of every computer in their broadcast domain, and I especially don't want them to
    be presented with said list every time they try to save something.  In newer apps, the list is not automatically displayed but is still accessible by clicking the "Network" selection.
    What is the proper way to remove this?
    I've tried the following:
    1) Disabling the NetBios over TCPIP service - works but prevents other things from working properly.
    2) Disabling the Computer Browser service - does not work.
    3) Changing HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder\Attributes from b0040064 to b0940064 as suggested here -http://www.sevenforums.com/tutorials/39699-network-add-remove-navigation-pane.html
    .  This seems to work but I cannot find anything that says this is supported by Microsoft and I am wary of what side effects may occur.
    4) Using a GPO to enable the "No Computers Near Me in Network locations" and "No Entire Network in Network locations." - no change.
    It seems like there should a simple way to do this as I can't be the only admin that doesn't want their users browsing a list of every computer on the network.
    Thanks!

    Hi,
    I will mark my first reply as answer. It could help other communities here who have the same issue.
    Thanks for your understanding.
    Regards,
    Leo   Huang
    TechNet Subscriber Support
    in forum. If you have any feedback on our support, please contact
    [email protected]
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Cisco vpn 5.0.07.0440-k9 connected but not access remote network from Windows 8.1 pro

    I am using Cisco vpn 5.0.07.0440-k9 and Cisco vpn 5.0.07.0290-k9 both version on our windows 8.1 pro laptop.
    VPN successfully connected but not access remote network and not getting ping. 
    But when i am try through wifi then vpn good work.
    Please help me as soon as possible.
    Thanks
    Sanjib

    Hello Karthik,
    I am using "MTS usb wifi" device and connect vpn through wifi Its working good the same win8.1 pro. But when i am try to connect VPN through LAN/Wired or USB modem (Like: Vodafone,MTS and others) its not working.
    I am using Easy vpn on Cisco RV325 router in our office. Same VPN client is very good working in Windows 7 SP1 and Windows XP SP3.
    Thanks
    Sanjib

  • Scheduling backups when wake from sleep is password protected

    i'm just wondering if it's possible to wake a mac from sleep (at say 0200) in order to run a backup script, if a password is required to wake from sleep/screensaver ?
    what's happening at the moment is that the computer wakes, the script starts to run, but then after about 1 minute, because the authentication dialog is not processed, it goes back to sleep, so interrupting the script
    i had the same problem trying to sftp into a mac after using wake-on-lan to wake it from sleep remotely. i can successfully make the sftp connection and start file transfers, however it quickly goes back to sleep (as the authentication dialog is unanswered)
    so does anyone know of a way to keep the security of require-password-from-sleep, as well as allowing useful things like running scheduled backup scripts ?
    Powerbook   Mac OS X (10.4.7)  

    I also had this problem and I worked with Apple Care. They are aware of the problem and apparently are working on a fix. The only way around this for now is to uncheck the option requiring a password to wake from sleep/screen saver in System Preferences/Security. I was amazed to find this problem, I can't believe Apple let this one past them because surely all those folks who use Backup with .Mac accounts have experienced this problem or don't realize their backup isn't happening. So, hopefully this is one item that will be fixed at some point.

  • Accessing Airport network from Windows PC

    My son is visiting and we cannot get his PC to find and sign on to airport network. Anything special required to do that?

    He's tried the password multiple times and cannot get on the network. We have four other laptop PC's in the house this weekend and all others are accessing with no problem. I assume there is something in his settings that is wrong, but I have no PC knowledge as I am a forever Apple user.
    The network appears in the list of available networks along with others in the neighborhood, but when he enters the password, it just continually churns away with a green bar scrolling across the screen saying "waiting to connect" (or some similar message).
    Thanks.

  • My Airport does not connect to network from Windows laptop, but guest network does connect to internet

    I set up my new Airport Extreme and can connect to the network with any IOS device (iPod Touch, iPhone or iPad).  When attempting to connect to network with my work laptop (Windows 7), I get an error that it cannot connect.  I have no problem connecting to the Guest Network on this laptop.  Unfortunately, no network connection. 
    I have Cox Communication Internet through there Motorola SURFBoard Cable Modem Model No. SB5101U.  

    Hey there shriya bhardwaj!
    I have an article for you that will help you troubleshoot this Wi-Fi issue on your computer:
    Wi-Fi: How to troubleshoot Wi-Fi connectivity
    http://support.apple.com/kb/HT4628
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Manage Mac Network from Windows?

    A friend of mine at work wants has to manage an Xserve and a small network of about 20 Macs. He is a Windows guy and his primary computer is a Thinkpad. He asked me if there is some equivalent software like ADR that he could run under windows. He has no Mac at his desk, and has to go to the server room to do any Mac administration. Do you have any suggestions? I am a Mac guy but know little about ADR or network administration. Maybe Timbuktu Pro?

    Yes, he can use Timbuk2 or any VNC client.

  • Print to Laserjet 1020 hosted by Windows 7 64 bit via network from Windows 7 32 bit

    I am trying to print from Win 7 32 bit to a HP 1020 connected to a 64 bit Win 7. (the 64 bit is a new computer).
    I have tried all the suggestions posted:
    Downloaded updated 32 bit driver to the 32 bit PC.
    I have also assigned the printer to a port on the computer.
    I enabled on the 64 bit printing from a x86 computer.
    Nothing helps.
    When I print, the job gets stuck on the computer connected to the printer. When i release the spool, it then prints the page.
    I was able to print when all the PCs were 32 bit (and XP before that).

    Hi NDK
    The host base driver is the same for both Win 7 32 & 64 bit operating systems.
    Win 7 32-bit:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=bi-88660-1&cc=us&dlc=en&lc=en&...=
    Win 7 64-Bit:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=bi-101596-1&cc=us&dlc=en&lc=en...=
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • Reading an EXCEL file from Oracle PL/SQL (HP-Unix server)

    Hi,
    I have the following requirement:
    1. Get the EXCEL file from the remote FTP location
    2. Read the EXCEL file and convert it into the CSV file format.
    3. Put the CSV file into another FTP location.
    I need to get all these points done using Oracle PL/SQL procedure.
    I am using the Oracle 9i installed in HP-Unix environment.
    Please help me in getting this done.
    Thanks

    Ok, setting up Excel as an External Database connection....
    1- Go to Control Panel>Administrative Tools>Data Sources (ODBC)>System DSN and create a data source with appropriate driver. Name it EXCL.
    2- In %ORACLE_HOME%\Network\Admin\Tnsnames.ora fie add entry:
    EXCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.0.24)(PORT = 1521))
    (CONNECT_DATA =
    (SID = EXCL)
    (HS = OK)
    Here SID is the name of data source that you have just created.
    3- In %ORACLE_HOME%\Network\Admin\Listener.ora file add:
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = <hs_sid>)
    (ORACLE_HOME = <oracle home>)
    under SID_LIST_LISTENER like:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = d:\ORA9DB)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = ORA9DB)
    (ORACLE_HOME = d:\ORA9DB)
    (SID_NAME = ORA9DB)
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = EXCL)
    (ORACLE_HOME = D:\ora9db)
    Dont forget to reload the listener
    c:\> lsnrctl reload
    4- In %ORACLE_HOME%\hs\admin create init<HS_SID>.ora. For our sid EXCL we create file initexcl.ora.
    In this file set following two parameters:
    HS_FDS_CONNECT_INFO = excl
    HS_FDS_TRACE_LEVEL = 0
    5- Now connect to Oracle database and create database link with following command:
    SQL> CREATE DATABASE LINK excl
    2 USING 'excl'
    3 /
    Database link created.
    Now you can perform query against this database like you would for any remote database.
    SQL> SELECT table_name FROM all_tables@excl;
    TABLE_NAME
    DEPT
    EMP
    But you're limited to Windows based servers for this.
    As for converting Excel to CSV and doing it yourself. I hope you know the internal format of MS Excel files cos you're gonna need to know it. It would be far easier if the "user" creating the Excel file could save a copy out in CSV format for you and then it's just a case of FTP'ing the file and using external tables to read the data.

Maybe you are looking for

  • Premiere Pro CC2014.2 update repeated fail

    I have tried to update Premiere to CC2014.2 via the CC updater on my iMac (OSX 10.8.5), which gets to 100% in the progress bar and then says update failed. I have also downloaded the updater from ProDesignTools, which also failed. Please could anyone

  • Multi-Mapping and Message Split using BPM UDFs Error

    hi As per the below blog Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure I have just modified the UDFs(1.selectnodeifA 2.selectNodeifB) 1.selectnodeifA for(int i=0;i<=n;i++) if(Name<i>.equals("A")) result.addV

  • How to implement approval on password reset from OIM 9.1

    I am having an requirement where i need to implement Manager Approval on user's every password reset from OIM 9.1.02. Please help me out with your suggestions. Thanks, Kanav

  • Will not start. Clicking but no LED

    Hello There. I have an power mac G5 2.5 duel about 5 years old with 7 Gig of Ram. the other day I put my mac into sleep mode and about 15 mins later went back into the room and could hear the fans spinning very fast. I tried to bring it back out of s

  • Oci error in report 6i in reports with more than 1000 pages

    hi in a report that has more than 1000 page output , run in report 6i while formatting pages an error occurs: OCI error.==>SELECT NAME, what this means? please help me. CAROL.