CONNECT UNIX MACHINE FROM WINDOWS USING C#

Hi all i have a requirement to connect unix machine from windows using c# code . I have the IP Address of the unix machine and the path too.I have to make a FTP using the c# code from unix to windows and vice versa . Can anybody help me out on this . It
would be great if have a solution for this .

Hi
Balamurali_Mohan,
Please refer to the similar thread
How to connect to unix server using c#
The marked answer said: Use a SSH (secure shell) client wrapper for .NET to connect to the remote UNIX machine and execute commands to run your script.
Have a look at:
http://www.codeproject.com/KB/IP/sharpssh.aspx
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to access a file in Unix server from windows using java

    I want to access a file in unix server from windows using java program.
    I have the following code. I am able to open the url in a web browser.
    String urlStr="ftp:user:passwd@unix-server:ftp-port//javatest/test.csv;type=i";
    URL url = new URL(urlStr);
    BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream)));
    String inputLine;
    while((inputLine=in.readLine()))!=null){
    System.out.println(inputLine);
    in.close();
    I get the following error
    java.io.FileNotFoundException: /javatest/test.csv
    at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:333)
    at java.net.URL.openStream(URL.java:960)
    at com.test.samples.Test.main(Test.java:45)

    urlStr="ftp:user:passwd@unix-server:ftp-port//javatest/test.csv;type=i";
    I have given the format of the urlStr that I am using in the code. The actiual values are used in my code. I have tried pasting this url in the browser and it opens the file.

  • Remote execution of unix shell from Windows ?

    Hello,
    I have a question related to distributed computing.
    I want to invoke Bash Script in a remote unix machine from my Windows 2000 computer. I hope in DOS environment of my Windows computer, I can run like this:
    C:\StartUnix.bat
    Then the DOS batch file will automatically connect to a remote computer running Unix and invoke one bash script, for example, "test.sh" to do the job in the unix environment. In the test.sh file, for example, I just want to show "Hello World!". (echo "Hello World !").
    In Windows computer, if I use telnet to the unix machine, I have to enter username,password, and run the shell script manually. Is there a way to do it automatically?
    How can I do that? RMI ? IDL? or something else? Can someone explain in details?
    Thank you very much!
    David

    You could try to use OutputStream object for the process object and write to it after opening the telnet session. This way your output will be to the telnet window and you could pass your telnet login info to it.
    I have seen code that does similar thing. Check in the forum with runtime.exec()

  • Connect to Mac from Windows

    I have three Windows systems and one Mac.
    Currently, to connect to my Mac (OSX Tiger) from Windows I have to be logged into the Mac as that user on the Windows machine.
    I have three users that access the Mac. All are setup on the Mac as users. All are setup on the Windows systems as users.
    But if John logs into the Mac and Betty tries to access the Mac from her computer she cannot. If John tries to access the Mac from his Windows system he can.
    Does anyone know how to setup the Mac so that any of the three users can connect to it from Windows regardless of who is logged in?
    I tried to set the group to staff for all the users public folders but that did not help.

    The user names and passwords are the same on both systems. That is not the issue.
    The issue is that each user can only connect to the mac from their windows system when they physically log on as user at the mac.
    Otherwise it will not even show up in their network neighborhood.
    If I boot up the mac and log in as the user, I can connect to the mac from my windows system but the other two users can't.
    Likewise if one of them logs in as the user on the mac, I cannot connect to it from my windows system.

  • Can't connect to Samba from Windows 8. Win 7 and XP work fine. Many popular solutions tried without success.

    To cut the long story short, I have an android box on which is installed Servers Ultimate Pro app. I use this app to run a Samba server and share the contents of my 3TB external HDD connected to this box and use it as a media server over the wireless network.
    This samba server is accessable from all my machines and devices - Win 7 Laptop, Win XP PC, and various other android devices using ES File Explorer. My Win 7 laptop has started to die on me, so I've got a new Win 8.1 laptop. The 8.1 laptop is unable to access
    the samba server. I have tried various popular solutions (almost all the ones listed in http://social.technet.microsoft.com/Forums/windows/en-US/5dd9991b-78e7-4fa3-b17c-366e4ae0092f) to no joy. The bizzare thing is that I am able to map the samba server to
    a network drive in Win 8.1, I am able to see the size of the samba server (says quiet accurately that 1.54TB free of 2.75TB total), but when I click the icon to open the drive, I get the infamous message: Z:\ is not accessible. The specified server cannot
    perform the requested operation.
    Of course the solution to the linked issue does not solve my problem since I presume Win 8.1 has this security patch KB2536276 built it and cannot be uninstalled. In order to completely rule out any Windows Update causing this issue, I did a clean reinstall
    of Win 8.1 and still got the exact same issue.
    Any suggestions?

    Further checks reveal that my wife's Win 8.1 laptop and my Surface RT tablet are both unable to access the Samba share either... but are able to map the share to a network drive showing the free disk space.
    Seems like a Windows 8.1 issue to me now... M$ where are you!!!

  • Problem connecting DataBase Link from windows oracle to oracle on Linux

    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?

    1005745 wrote:
    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?A database link is acting as a client to the target, remote database in exactly the same fashion and using exactly the same tns infrastructure as any other client trying to connect to that remote database. your ORA-12154 when querying a db link means exactly the same as if you had gotten it trying to connect with sqlplus, from the same server. Check the link SB provided. Keep in mind that the tnsnames file of concern is the one on the source database server.

  • No internet connection after upgrade from windows 8 to windows 8.1

    I have upgraded my operating system from windows 8 to windows 8.1, I also updated windows 8.1 after the system upgrated. I found there is no access to internet, although I have full wifi signal. I tried to conncet to the router via ethnet cable, but it still has no internet connection. However, I can see other computers at homenet via wifi.  I have seen some questions in the Forum regarding wifi failure after upgrating to windows 8.1, and I tried to uninstall all my drivers (LAN and wireless) of network adapter, and re-install the latest drivers from HP website at http://support.hp.com/gb-en/drivers/selfservice/HP-Pavilion-Sleekbook-15-b000/5296234/model/5311051#Z7_3054ICK0KGTE30AQO5O3KA30R1(I tried the Ralink ones as I remembered the old drivers are Ralink), but it does not work.  Please could you help? 

     Hi @Koala76 , Thank you for visiting the HP Support Forums and Welcome! I have read your post on your HP Pavilion Sleekbook 15-b052ea and Windows 8.1 causing issues for you when trying to connect to the wireless. Try opening Device Manager, clicking Control Panel, clicking System and Maintenance, and then clicking Device Manager. In Device Manager, locate the network adapter, and then double-click the device name. Click the Driver tab, and then uninstall everything in the list except the Realtek and the Ralink. Remove any USB devices and Ethernet cables that are connected. Restart the computer. After you restart the computer, please use the HP Support Assistant. The HP Support Assistant has a wireless connectivity troubleshooting tool inside. Here is a screen shot of the Internet and Security tool that will help you diagnose Internet Connectivity.  I hope this helps! Thanks.  

  • Connecting to Internet from Windows XP

    After updating from Leopard (which shipped with my MacBook 4.1) to Snow Leopard, I am unable to connect to the internet while using the Windows side of my computer. Suggestions?

    Post where all the Windows experts are.
    https://discussions.apple.com/community/windows_software

  • Sql plus can't connect to server From windows vista - VISTA 2007

    ERROR-12154:TNS Could not resolve service name
    SERVER OPERATING SYSTEM UNIXWARE 7.1.4
    ORACLE 8i
    D2K- RELEASE 2.1- SQL Plus 3.3
    Loaded in front end on VISTA
    NET EASY CONFIGURATION Closes, can't configure
    I have done configuration manually.
    I thing VISTA Not supporting or some protocol to be configured in VISTA
    Please help me to solve the poblem.

    So your 8i db is on unixware and you are trying to connect to it from you local vista machine ?
    What Oracle client version are you using on vista ?
    Lowest 8i that support 10g client connection is 8 1 7 3 , 11g will not connect at all, and i think all 9i's will work,
    but it seems that you have wrongly defined entry in tnsnames for the db you are trying to connect to.

  • Connect to Mac from Windows Vista issue

    Hi I want to view some files that are on my Mac from my PC (Windows Vista). Here's what I did so far: On my Mac I enabled file sharing, I selected the folders that I want to share.
    Now here's the part that confuses me, it asks me to add the users to share the folder with. but do I enter the username and password for my mac or is it the username and password for my PC? What I did was add all the accounts that are on my mac.
    I then went on my PC, clicked on network, I can see the mac computer, I can also see my username and folder, I click on it, I then see the drop box but when I click on it I get a network error message that says "Windows cannot access Users public folder drop box".
    I don't know what setting I need to enable since I'm very new to this. I can access the files that are on my PC from my Mac just fine. but I can't access the files that are on my Mac from my PC. Do I need to create a new mac account?
    I also noticed that when I click on the mac computer from my PC in Network, it doesn't ask me to enter a username and password, could that be the reason I can't connect? Please help.
    Message was edited by: Stuart Lawrence

    The user names and passwords are the same on both systems. That is not the issue.
    The issue is that each user can only connect to the mac from their windows system when they physically log on as user at the mac.
    Otherwise it will not even show up in their network neighborhood.
    If I boot up the mac and log in as the user, I can connect to the mac from my windows system but the other two users can't.
    Likewise if one of them logs in as the user on the mac, I cannot connect to it from my windows system.

  • IMac 24" cant connect in WiFi from Windows Vista

    Hi;
    First I apologize for my bad english.
    Now, here is my problem.
    My iMac 24" running under OS X 5.6 connects itself perfectly in WiFi to my CometLabs WRM42 ADSL router in Mac mode. But i'm not able to establish the same connexion in Windows Vista mode.
    According to Windows troobleshooting, linking router and Mac with a cable permits the connexion to work and continue to work after pulling out the cable. But the connexion is not again possible without cable after a restart of the computer.
    Many thanks to whom will give me the solution.

    well, to be honest...networking in x ***** these days - but not as much as windows does I miss os9...
    Anyway, I have a great deal of experience with it and windows, so chances are i've ran into this problem before... so here it goes -
    question one - in your "directory access"(in utilities) what workgroup do you have (it has to be IDENTICAL as the one on the windows machine) otherwise windows wont play nice.
    Question two- whats the hardware setup like? Is this directly through a crossover cable? Are you connected through a switch? It sounds like its able to connect, so it must be correctly wired, but. There have been instances (here anyway) where the plug on the wire either wasnt firmly seated, giving intermittant access, or it was simply put together badly. Not that this is the case here, but i would try to eliminate that possibility by going directly between computers with a cross over cable (a good one..heh) just to be certain.
    id ask the ip# question, but you gave that in your ping report. The numbers appear to be right, the only thing here i could think of is if A) you have differing subnets, or you have different dns numbers. I highly doubt thats the problem though. Now depending on your version of x, i seem to recall there being the need to set a user to be able to share to windows. In the older days i believe that box was in the accounts control panel. Now its a "accounts" button in the sharing control panel. Be sure to give it the name and pass of the account you've turned on.
    the other question that might pertain is, what version of windows is this? Strangely enough i seem to have better success with win98 than with xp. But it would be interesting to find out...
    anyhoo, good luck with the voodoo

  • Call Unix Command From Reports Using Java

    Hi,
    Could somebody please show me a sample coding to call Unix command from 10g report using java?
    In metalink doc id 361857.1 does not show much.
    Thanks,
    neemin

    Hi,
    I have a problem with synchronization of the java commands.
    In the Before Parammeter Form trigger, I have:
    function BeforePForm return boolean is
    rt ORA_JAVA.JOBJECT;
    proc ORA_JAVA.JOBJECT;
    v_txt varchar2(32000);
    i integer := 0;
    v_cd_modulo int;
    v_arqlog text_io.file_type;
    cursor c_evento is
    select codigo,
    nome
    from
    (select e.cd_evento || e.cd_edicao codigo
    ,nm_evento nome
    from grh_ev_evento e
    where e.CD_GRUPO in (select cd_grupo
    from grh_ev_adm
    where cd_usuario = (select cd_usuario
    from usuario
    where login_usuario = :AUTHID)))
    order by substr(nome, 11);
    begin
    -- Create the context for logged user
    if instr(upper(nvl(:AUTHID,'RWCLIENT')),'RWCLIENT') > 0 then
    :AUTHID := :SSO_USUARIO;
    end if ;
    TCEENV.SET_TCEENV(:AUTHID);
    if PK_SCA.SCA_GET_USER_RIGHTS(:sca_module_name, :AUTHID) IS NULL then
    srw.message(100, 'Access denided!');
    return (FALSE);
    end if;
    -- Create file in Report Server (UNIX)
    v_txt := '<BR>' || htf.formSelectOpen('P_EV_EDICAO', 'Evento: ');
    :p_file := '/u03/SCAWEB/repout/' || :sca_module_name || '_' ||
    pk_sca.sca_encrypt(:AUTHID || to_char(systimestamp, 'ss.ff'));
    v_arqlog := text_io.fopen (:p_file, 'A');
    text_io.put_line (v_arqlog, v_txt);
    for reg in c_evento loop
    i := i + 1;
    if i = 1 then
    v_txt := '<OPTION SELECTED VALUE="' || reg.codigo || '">' || reg.nome;
    else
    v_txt := '<OPTION VALUE="' || reg.codigo || '">' || reg.nome;
    end if;
    text_io.put_line (v_arqlog, v_txt);
    end loop;
    v_txt := '</SELECT></CENTER></form></BODY> </HTML>';
    text_io.put_line (v_arqlog, v_txt);
    text_io.fclose (v_arqlog);
    SRW.SET_AFTER_FORM_HTML(SRW.FILE_ESCAPE, :p_file);
    rt := RUNTIME.GetRuntime();
    proc := RUNTIME.exec(rt,'rm ' || :p_file);
    return (TRUE);
    end;
    The problem is that there isn't a "synchronize" command, and the
    RUNTIME.exec(rt,'rm ' || :p_file) don't works (it does nothing) because
    the SRW.SET_AFTER_FORM_HTML has a large delay and the following
    command is ignored.
    How can I solve it?
    thanks,
    lmprestes

  • No connection after waking from sleep using Express as base station

    I find it difficult to re-establish my Internet connection after waking from sleep.
    The Airport Express is connected to a wired Linksys router. I am using the Airport Express as my main base station. The Powerbook is joining my preferred network, but I am unable to get any in- or outbound Internet traffic.
    I am, however, able to connect to my Linkys and login to to its admin area. When I run Ping and Traceroute diagnostics from the Linksys web interface, everything seems to be fine-- I am able to see outside servers. So the problem is this-- I am losing my Internet connection somewhere between the Linksys router and my Powerbook. Only after I fiddle I reset the Airport Express and fiddle with the Airport menu (Turn Airport On/Off) am I finally able to get out to the Internet.
    I have the channel switching set to Automatic, but I've also tried running the Airport Express at different channels to no avail.
    Has anyone experienced similar problems?

    Since you have an Airport Express connected to a separate router, start by disabling the router built into the Airport Express. To do this - run the Airport Admin Utility, select your Airport Express, click Configure, click the Network tab, and uncheck the setting to "Distribute IP addresses". Update settings to the Airport Express. Then - very important - restart all wireless computers.

  • Can not reboot into OSX from Windows using Bootcamp assistant

    I'm having a bit of a problem with rebooting into OSX from Windows on bootcamp. Clicking on the icon in the system tray produces a message that Windows can not find the OSX disk. Trying to open the Bootcamp preferences also generates an error. I have no problem getting back into OSX if I shut down Windows and restart the MacPro while holding down the option key. This is with a Windows 7 install on Bootcamp, but I had the same issue with a previous install of Win XP. I nuked and paved OSX and the WIndows disk between installs so my current problem is not carry over from the XP install.

    My bad I should have been more clear. The problem is actually with a XP install via bootcamp, my Win 7 install is in VM Ware Fusion.
    The XP install is on a second drive. Since you asked about this I'm assuming it may be the reason Im having problems.
    The error is I get when trying to access bootcamp via the Windows control panel or by right clicking the sys tray icon is - "An error occured while trying to access the start up disk settings. You may not have privileges ...blah, blah, blah. I only created one account and I have enough privliges to change admin stuff in windows so I cant see privliges being the issue. I reassigned the OSX partition a new drive letter and rebooted windows but this didn't help.
    The only drivers I installed, other then updating the video driver, are the bootcamp drivers
    Sys tray icon - small diamond shapped icon in systray for accessing bootcamp functions.

  • Application launched from Windows using Unix Adobe Document Server  Issue

    Hello,<br /><br />Sample application is written to merge two or more pdf files using Adobe Document Server.The sample application is using Webservice and laucnhed from Winodows and the AdobeDocument Server is in Unix.<br />I am getting following error:<br /><br />java.lang.UnsupportedOperationException: DON'T USE read()!!!<br />     at com.adobe.altercast.sdk.utils.FixedLengthInputStream.read(Unknown Source)<br />     at org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Unknown Source)<br />     at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)<br />     at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(Unknown Source)<br />     at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(Unknown Source)<br />     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)<br />     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)<br />     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)<br />     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)<br />     at com.adobe.altercast.sdk.impl.webservice.parsers.SOAPParserBase.parse(Unknown Source)<br />     at com.adobe.altercast.sdk.impl.webservice.envelopes.ResponseEnvelope.parse(Unknown Source)<br />     at com.adobe.altercast.sdk.impl.webservice.methods.WebMethod.invokeRemotely(Unknown Source)<br />     at com.adobe.altercast.sdk.impl.webservice.ServerWebService.invokeWebMethod(Unknown Source)<br />     at com.adobe.altercast.sdk.impl.webservice.ServerWebService.execute(Unknown Source)<br />     at PDFMerge.merge(PDFMerge.java:364)<br /><br />The same application works when I launch from Unix, so I was guessing its the Pdf file paths in windows. I found the following link for UNC path issue for Adobe Document Server:<br />http://support.adobe.com/devsup/devsup.nsf/docs/53397.htm<br /><br />The latest commands.xml file:<br />The xml file for PDF Merge:<br /><?xml version="1.0" encoding="UTF-8"?><commands><br /><loadContent source="file:///c:/pdf/test1.pdf" out="f1"/><br /><loadContent source="file:///c:/pdf/test2.pdf" out="f2"/><br /><assemblePDF><br /><document source="f1"/><br /><document source="f2"/><br /></assemblePDF><br /><saveContent name="file:///c:/pdf/test_merge_ts.pdf"/><br /></commands><br /><br />Still I am having the same error mentioned above.<br /><br />I am using following piece of code to launch webservice:<br />http://UnixServerName:8019/altercast/AlterCast<br /><br />Thanks in advance for any suggestion to resolve my issue.<br /><br />Sridhar

    It might be deliberate, Acrobat and Reader software is not intended to run in a service environment.

Maybe you are looking for

  • Notifiche badge calendario spariscono/problem with notifications centre

    Utilizzo le notifiche badge per il calendario ma dopo poco o se ne faccio un tap nel centro notifiche,spariscono tutte,mai successo. Prima sparivano solo se facevo un tap e le altre rimanevano. I'm using badge notifications for the calendar but if i

  • Display quality going down.

    Hey, I love my iphone4 But it seems every day i use my iphone the screen quality is going down. When i Text Message somebody i can really notice a diffrence. Do you think i should bring it back if it continues? I got it on launch date. And when was t

  • Not allows to assign default value to input field using values in datastore

    Hi Masters, Consider that I have one input field in a form. I should assign default value to it. I should assign to it, the value which i have stored in a datastore. When i run the application, if i give default value as 123 ,then it is working fine

  • Multiple per forma and clubbing making single per forma

    Dear sir, my client requirement is to club multiple per forma invoice to create a single per forma invoice . i want to know the copy control setting for that can anybody guide me regarding that? Regards, Debesh Tripathy

  • "ORA-03001: unimplemented feature" in Oracle 8.1.7

    When I'm trying to run even the simplest mappings in OWB 9.2 I'm getting the error code ORA-03001: unimplemented feature. I am running under Oracle 8.1.7 with 8.1.7 as source and target. I have tried to debug the package manually in Oracle but I can'