Tail command to read httpd log from remote machine

hi!
does anyone know how to read the httpd log file using the tail command froma remote machine?
i have a mac using osx sharing the internect connection to other machines. this machine has the http server running on it and i would like to check the httpd log file (from this server) from my computer in the same LAN.
can anyone help please??
G5 2.5ghz dual   Mac OS X (10.4.4)  

As Ashish rightly said, you need to use ftp/scp.
You can create a shell script on unix machine. Which shall copy the file from Windows machine to Unix machine on particular directory. Then you may need to change permissions of the file.
Once that is done, same shell script can call procedure in oracle.
You can schedule this shell script in Crontab to run at specified time daily, if you the timing of availability of file.
Regards,
Arpit

Similar Messages

  • How to read file from remote machine

    Hello,
    Hi, i would like to know how to read text file from remote machine using java source code, any code ?
    Thanks very much;
    Best regards
    Kim

    On the server, perform the following steps:
    Parse the request and determine the file to serve
    Open a FileInputStream to the appropriate file
    Obtain a reference to the Servlet OutputStream
    Pipe the bytes from the file to the output stream
    Flush and close the streamYou might want to call HttpServletResponse.setContentType("application/octet") to indicate to the browser that a file download will be occurring. Do so before getting the reference to the Servlet's OutputStream.
    - Saish

  • Error in calling EJB Client from Remote Machine.

    While running the client from local machine, it works perfectly.
    But when I try to run the same client from remote machine it gives me the error.
    I deployed the ejb in sun server 1.4 with jndi as "xxx.xxx.xxx.xxx/MyTemperature".
    Following is the code snippet from the clint.
    Context initial = new InitialContext();
              Object objref = initial.lookup("192.168.0.20/MyTemperature");
              home = (TemperatureHome) PortableRemoteObject.narrow(objref, TemperatureHome.class);
              Temperature degreeConverter = home.create();Following is the error
    E:\EJBRemoteTest>java TempClient.TemperatureClient
    May 14, 2008 10:00:24 AM com.sun.corba.ee.impl.legacy.connection.SocketFactoryCo
    nnectionImpl <init>
    WARNING: ORBUTIL.connectFailure
    org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
            at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(O
    RBUtilSystemException.java:1739)
            at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(O
    RBUtilSystemException.java:1757)
            at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<
    init>(SocketFactoryConnectionImpl.java:74)
            at com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl.
    createConnection(SocketFactoryContactInfoImpl.java:77)
            at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.begin
    Request(CorbaClientRequestDispatcherImpl.java:152)
            at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaC
    lientDelegateImpl.java:121)
            at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClie
    ntDelegateImpl.java:214)
            at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
            at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java
    :69)
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:58)
            at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:126
            at javax.naming.InitialContext.lookup(InitialContext.java:347)
            at TempClient.TemperatureClient.main(TemperatureClient.java:17)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection ref
    used: connect
            at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSock
    etFactory.java:520)
            at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<
    init>(SocketFactoryConnectionImpl.java:58)
            ... 10 more
    Caused by: java.net.ConnectException: Connection refused: connect
            at sun.nio.ch.Net.connect(Native Method)
            at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:460)
            at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
            at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSock
    etFactory.java:511)
            ... 11 more
    Caught an unexpected Exception!
    javax.naming.CommunicationException: Can't find SerialContextProvider [Root exce
    ption is org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: N
    o]
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:66)
            at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:126
            at javax.naming.InitialContext.lookup(InitialContext.java:347)
            at TempClient.TemperatureClient.main(TemperatureClient.java:17)
    Caused by: org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed:
    No
            at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(O
    RBUtilSystemException.java:1739)
            at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(O
    RBUtilSystemException.java:1757)
            at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<
    init>(SocketFactoryConnectionImpl.java:74)
            at com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl.
    createConnection(SocketFactoryContactInfoImpl.java:77)
            at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.begin
    Request(CorbaClientRequestDispatcherImpl.java:152)
            at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaC
    lientDelegateImpl.java:121)
            at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClie
    ntDelegateImpl.java:214)
            at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
            at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java
    :69)
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:58)
            ... 3 more
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection ref
    used: connect
            at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSock
    etFactory.java:520)
            at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<
    init>(SocketFactoryConnectionImpl.java:58)
            ... 10 more
    Caused by: java.net.ConnectException: Connection refused: connect
            at sun.nio.ch.Net.connect(Native Method)
            at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:460)
            at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
            at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSock
    etFactory.java:511)
            ... 11 moreThis is a stateless session bean.
    Can anybody provide me solution for this
    I also tried with java.util.Properties class but result is same.

    You are running on Windows 9x or Me, right? The darn OS has 300 or so bytes allocated for environment by default.
    Try setting the Initial environment to 4096 in the Properties|Memory tab for the batch file. That will get rid of "Out of environment space". The syntax error is another matter; Windows (except NT and derivatives) shells do not allow '=' in an environment variables value. You cannot overcome that. Some software (Sybase for instance) interprets # as = just because of that. Unfortunately, the JVM doesn't take such an approach.
    Better, grab copies of Unix utilities for Windows (www.gnu.org) including the wonderful shell 'bash' and write .sh scripts, which are inherently more powerful.

  • Restoration of /var/log/secure.log from Time Machine Backup

    I have a need to restore /var/log/secure.log from Time Machine Backup on Lion Server, but can not find any entries for this file in the Time Machine archives even when using the find command.   It seems like it is not backed up.   I'm hoping that this is not the case; if it is it represents a pretty large mistake from a security perspective.
    Is there something that I'm missing?
    Thanks

    gracoat wrote:
    ...sigh...
    Try time machine and see what happens...  I dare ya!
    I've helped several folks here who were using TM on Snow Leopard Server quite successfully.  In most cases, as in most cases of trouble with backups on client Macs, they were having hardware problems.
    Granted this is a 10.6 server page, but they haven't updated open LDAP in a way that would change it's database functionality, nor have they changed the way time machine backs up and what it backs up.
    Nowhere there does Apple say that "Time Machine is NOT a suitable backup solution for a server" or anything like that.
    The article clarifies what it does, and does not, back up.   So it may or may not be a suitable backup solution depending on individual situations.

  • Unable to recieve any logs from Sun machine....

    Hi,
    I'm using Sun Solaris v10 and i have problem in receiving logs from sun machine. The syslog server is my windows which i want my sun machine to sends logs to (windows machine is ALIVE on default port 514).
    I have edited the syslog.conf file as:-
    t100: Unknown terminal type
    I don't know what kind of terminal you are on - all I have is 't100'.
    [Using open mode]
    "/etc/syslog.conf" 42 lines, 1098 characters
    #ident  "@(#)syslog.conf        1.5     98/12/14 SMI"   /* SunOS 5.0 */
    # Copyright (c) 1991-1998 by Sun Microsystems, Inc.
    # All rights reserved.
    # syslog configuration file.
    # This file is processed by m4 so be careful to quote (`') names
    # that match m4 reserved words.  Also, within ifdef's, arguments
    # containing commas must be quoted.
    *.err;kern.notice;auth.notice                   /dev/sysmsg
    *.err;kern.debug;daemon.notice;mail.crit        /var/adm/messages
    *.alert;kern.err;daemon.err                     operator
    *.alert                                         root
    *.emerg                                         *
    # if a non-loghost machine chooses to have authentication messages
    # sent to the loghost machine, un-comment out the following line:
    #auth.notice                    ifdef(`LOGHOST', /var/log/authlog, @loghost)
    mail.debug                      ifdef(`LOGHOST', /var/log/syslog, @loghost)
    *.info @192.168.50.253:514
    auth.* @192.168.50.253
    *.debug @192.168.50.253
    *.* @192.168.50.253
    # non-loghost machines will use the following lines to cause "user"
    # log messages to be logged locally.
    ifdef(`LOGHOST', ,
    user.err                                        /dev/sysmsg
    user.err                                        /var/adm/messages
    user.alert                                      `root, operator'
    user.emerg                                      *
    )I even have made en entry at /etc/hosts which is given as:-
    *192.168.50.253 asad loghost*
    All this but my syslog server remains empty of any logs yet.
    Is there a way where i could explicitly make Sun machine to generate logs by invoking some methods......as for now its taking for ever to generate logs by the machine.
    Please rectify this problem as I have reached a dead-end making sense of the logging mechanism proposed by the sun machine.

    Try replacing any space characters in the lines you added to syslog.conf with tabs.

  • Launch exe from remote machine

    Hi All,
    How can I launch an executable residing in machine A from machine B?
    I'm trying web services but no luck.
    Am I the wrong track?
    Thanks a lot

    What does "I'm trying web services but no luck." mean? As I see it, you have two separate things to accomplish here. One is the launchiing of the executable locally. The other is the triggering of that event remotely. Deal with one, then the other. Much simpler. That is, encapsulate the launching in a single method call, then work on calling it remotely. Then your problem is simply "How do I call a method remotely?", and entirely decoupled from details such as "launch exe from remote machine"

  • Linked server problem, its works locally but not from remote machine

    Hi,
    i am using the application NAV and have written the query in the application. am using automation variable to link to the SQL Server.
    The problem is that , the query which i have written executes only when i am working on local machine .
    I mean when i want to execute the same query from remote machine through my app Dynamics NAV then its not getting executed.
    Thanks in advance

    Depends on what you are trying to do and what security you are using.
    What error did you get?
    If you are using windows authentication then take a look at delegation
    http://www.databasejournal.com/features/mssql/article.php/3696506/Setting-Up-Delegation-for-Linked-Servers.htm
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Reading .txt file from remote using abap?

    Hi,
    I must read a .txt file from remote server automatically.
    I have path and name of .txt file. Remote system asks username and password.
    In abap is it possible to give username and password for reading .txt from remote server?
    Remote server and sap server are not in same domain.
    How can i do that?
    Thanks.

    Hi Cemil ,
      You can try using the FM RZL_READ_FILE_REMOTE_SH.
    This is an option i found ,  but i have really not tried it out .
    Regadrs
    Arun

  • Could not read detail log from DB12 and DB13

    hi gurus,
    I am unable to read detail log of onlinebackups and Redolog backups from DB12 and DB13 in my BI sytem what could be the problem.
    cheers
    Kumar

    Hi Saurabh,
    Thanks and sorry for late reply I am on vacation, I am back today.
    How can I check permission of directory for sap backup in GUI level ? Please let me know.
    When I try to go through T.code DB12 -> Overview of databse backups - > Double click on todayu2019s date -> and click on Detail log I am getting a pop up with u201CCould not read detail log XXXX.anf u201D
    But if I check through SM37 Job log I am able to see the log.
    Please help me to solve this problem.
    System details
    BI System SAP NetWeaver 2004s, Kernel -> 710
    DB :Oracle 10g
    OS : HP UNIX
    Regards
    Kumar

  • Read XML files from remote server

    Post Author: TomDegetel
    CA Forum: Data Integration
    This question may look simple to you but I don't see directly how to do this.The idea is to read data from an XML file which is sent to a UNIX directory on a server.When the JobServer is running on my local PC I can configure a flow that reads the file from the local harddisk but if the JobServer is running on another server I don't know how to reach this file.How can I connect from the jobserver to a remote server in order to read an xml file and read its contents into a query ? Thanks,  Tom

    Post Author: bhofmans
    CA Forum: Data Integration
    you have several options :
    1) Make sure the directory is accessible to your jobserver via shares. This can even be done between Windows and UNIX using SAMBA or related software.
    2) Use ftp to get the file from the remote location and ftp it to a local drive (DI had built-in options to do ftp)
    3) In 11.7 we added the possibility to specify an URL for the XML file in stead of a file name. So if you can make the XML file available via a web server on the UNIX machine, this would be another way to access the file.

  • GRC10.0 FF controller can read the Logs from all FFID

    HI,
    we'v just implemented SP5 fpr GRC10.0 and noticed that the Firefighter Controller can read all the activity logs from all the firefighter ID by Super User Management Reports, even if the FFID doesn't belong to him.
    Does someone know how to restrict it, so that the FF Controller can just access the FF logs which belong to him?
    Thanks a lot!

    Hi,
    I believe the purpose of the SPM reports, such as the Consolidated Log Report, is to allow an individual to gain a comprehensive view into all FF usage - not just that of a single FFID or single FF session.
    Personally, I think it is helpful to allow controllers to review activity across many different FFs or sessions, but if you have a specific requirement to limit controllers to only seeing their own FF ID logs (maybe a sensitive data concern coming from another FF ID?), I don't believe you will be able to acheive this by restricting the SPM reports.
    As far as I can tell, there are not authorizations or other options to limit the results of this report to your FF IDs only.
    By restricting the GRAC_REP authorization object and the GRAC_REPID field, you could choose to take away access to this report(s) and then the controller's couldn't view this data.  You could then have them rely on the emailed/workflow driven reports only for their review which would be just a single FFID session.

  • Get SM20 Audit Log from remote call.

    Hi Experts,
    I'm working with SAP JCo driver, I'd like to ask, is there any possibility to receive filtered Audit Log from SM20?
    I couldn't find any BAPI or RFC interface, or information about specific table where information is stored.
    Thanks in advance!
    Best regards
    Bartosz

    Hi,
    You can activate the internal audit system by setting the audit log parameters as described in the following table : 
    Audit Log parameter settings Audit Log Parameter Set value to... 
    rsau/enable 1 
    rsau/local/file path to audit log file 
    rsau/max_diskspace/local maximum space to allocate for the audit files 
    rsau/selection_slots 3 
    rec/client ALL
    Thanks,
    Hamendra

  • Running ldifmigrator/ldapadd from remote machine

    Hi,
    I installed Infra with OID on machine-1. I am now trying to run ldifmigrator on machine-2 while doing a lookup on the oid on the first machine. Is there some problem with this ?
    The command works fine when I run it locally on machine-1. The command is:
    <--------------------------------------------------------
    ldifmigrator "input_file=d:/config/ldap/system-oid.sbs" "output_file=d:/config/ldap/system-oid.ldif" -lookup "host=machine-1" "port=333" "subscriber=idc" "s_UserCommonNamingAttribute=cn" dn="cn=orcladmin" password=welcome1
    -------------------------------------------------------->
    When I run this command on a remote machine say machine-2 then i get the error:
    <----------------------------------------------------
    Unable to establish connection to directory. Please verify the input parameters:
    host, port, dn & password
    returnInitialLdapContext() times out after 10000 ms - JNDI initialization method
    not returning
    ----------------------------------------------------->
    My http port is 777 and oid port is 333. Another strange thing is that I can only access http://machine-1:777/oiddas from machine-1. This is not possible from machine-2 even though ping works fine.. Hoping for some help !
    Thanks !

    It sounds like your firewall could be preventing external connections. How is that configured?

  • Weblogic no-stage mode deployment from remote machine

    Context:
    1. Build server is on machine A, where ant script builds the file and package ear
    2. WLST deployment.py script is on build server (machine A).
    3. weblogic admin server in machine B. The managed servers are on machine B and C.
    4. ear file is copied to NFS shared drive mounted on server B and server C.
    5. The deployment.py (which is on machine A) connects using WLST to Admin server of machine B to execute no-stage mode deployment
    Question:
    In above scenario it is observed that deployment fails and observed that though deployment.py is connected using WLST of remote admin server(machine B). the WSLT deployment command tries to validate .ear path on machine A. Is this constraint of the WLST? or Can the WLST deployment command can be invoked form script (in this scenario deployment.py) from build server (machine A) connection to admin server (machine b)?

    Hi,
    Make sure that you give App path in NFS shared location instead of the Machine A.
    You build every thing was successful but when you place the app you need to specify application location. I hope you place app in the shared location.
    Regards,
    Kal

  • Using MS Access as Database from Remote Machine

    Hi All
    I am trying to use MS access as Data base, I have done the following.
    1. I have Added the mdb file on a remote machines DSN.(Control Panel->Admin Tools->ODBC->System Tools)
    2. In xMII data services->Data Servers, Copied the Default IDBC Server, renamed it and updated the ServerURL as  jdbc:inetdae:<IP of Remote machine>:1433?database=<DB Name>&sql7=true.
    With these things done, I am not able to get the Data Server Accesible.
    Please correct what mistake I have made.
    Thanks and Regards
    Rupesh

    Rupesh,
    First Access is not a very good database... I would suggest using MSSQL, MySQL, or some other 'real' database. But I digress...
    The only supported way to get the data you want from Access is by... you guessed it... the <b>xMII OLEDB UDS</b>. Sure you could try the JDBC - ODBC bridge, but this seems to be shaky.
    Martin - seriously... I'm trying to get the UDSs out to all of you!

Maybe you are looking for

  • How to crossover this binary tree..?

    You can view detail http://www.codeguru.com/forum/showthread.php?s=bb4cf7ad2b18a5115e8bd6ab3a4e9d17&t=470868 [nha khoa|http://www.sieuthi77.com/main/nhakhoa.html] .com/forum/showthread.php?s=bb4cf7ad2b18a5115e8bd6ab3a4e9d17&t=470868 I have these clas

  • Satellite M30: coloured lines run up and down on display

    Hi there Ive got a problem with the display on my Satelite M30. I can boot into windows fine etc but coloured lines run up and down my display as well as general artifacts. I cant even install nvidia drivers without a blue screen. The strange thing i

  • How run a report in background process ?

    Hi Experts, I wrote a code in which I am have multiple selection screens....means in first screen there will 3 radio buttons. So, depending upon the radio button selected, the other selction screen will be displayed... So, here i want to run a report

  • R/3-XI-MDM

    Hello, I have a scenario where I have to send my customer data from R/3 machine to MDM. We are using IDOC from R/3 end to read the data and planning to send the data in XML. I was wondering is it possible for MDM to read the XML file, if we place in

  • My Apple TV 2 isn't recognised in iTunes.

    Hi, My Apple TV 2 isn't recognised in iTunes and checking the support pages the solution appears to be to get a Bonjour update download, only problem is where do I get this download as I can't find it anywhere. Second problem may be linked to the fir