#!/bin/sh
read a
if ; then
echo "ur good";
else
echo "ur bad"
exit
fi
I am getting the following error!
/home/xyz/scripts >help.sh
apple
help.sh: [apple: not found.
ur bad
can i know what would be the wrong in my script (3 Replies)
Hello everybody, iam new to unix. here is a question i had.
when i run errpt -a , sample out put is as follows
LABEL: FCP_ARRAY_ERR4
IDENTIFIER: D5385D18
Date/Time: Mon Sep 25 11:15:59
Sequence Number: 182869
Machine Id: 000166784C00
Node Id: ... (0 Replies)
Hi,
I have a cron job which executes daily once 9 PM.
The script is like
if
then
TYPE=OC
elif
then
TYPE=i
elif
then
TYPE=mmc
elif
then
TYPE=CB
elif
then
TYPE=oth
fi (1 Reply)
I have Solr 1.4 running on Tomcat6 installed in an Ubuntu 10.04 LTS openVZ container. I am looking for documentation on Solr. I need to know where Solr and Tomcat do their logging by default when installed from the standard Ubuntu apt repo. I would like to know more about both technologies but Solr... (0 Replies)
I have two shell scripts in the different directories listed below,
/root/dev/dir1/test.sh
/root/dev/dir2/master.sh
I am executing the master.sh script from the test.sh like below and getting 'Permission denied' error.
#! /bin/sh
#test.sh
path='/root/dev'
$path/dir2/master.sh
But it... (2 Replies)
I am having output in this format..
-rw-r--r--
1
root
root
20
Jan
01
14:32
abc.txt
-rw-r--r--
1
root
root
40
Jan
01
14:32
abcd.txt
-rw-r--r-- (9 Replies)
I am not able to execute bash script on Fedora. They were running on another environment. This is a sample script:
#!/usr/bin/bash
input="./data/heu/hout1"
i=1
j=0
while IFS= read -r file1
do
#Some code here
done < "$input"
#echo $j
I get an error:
bash: s.sh: command not... (3 Replies)
Discussion started by: ngabrani
3 Replies
LEARN ABOUT PHP
solrresponse
SOLRRESPONSE(3) 1 SOLRRESPONSE(3)The SolrResponse classINTRODUCTION
Represents a response from the Solr server.
CLASS SYNOPSIS
SolrResponse
abstract
SolrResponse
Constants
o const integer$SolrResponse::PARSE_SOLR_OBJ0
o const integer$SolrResponse::PARSE_SOLR_DOC1
Properties
o protected integer$http_status
o protected integer$parser_mode
o protected bool$success
o protected string$http_status_message
o protected string$http_request_url
o protected string$http_raw_request_headers
o protected string$http_raw_request
o protected string$http_raw_response_headers
o protected string$http_raw_response
o protected string$http_digested_response
Methods
o public string SolrResponse::getDigestedResponse (void )
o public int SolrResponse::getHttpStatus (void )
o public string SolrResponse::getHttpStatusMessage (void )
o public string SolrResponse::getRawRequest (void )
o public string SolrResponse::getRawRequestHeaders (void )
o public string SolrResponse::getRawResponse (void )
o public string SolrResponse::getRawResponseHeaders (void )
o public string SolrResponse::getRequestUrl (void )
o public SolrObject SolrResponse::getResponse (void )
o public bool SolrResponse::setParseMode ([int $parser_mode])
o public bool SolrResponse::success (void )
PROPERTIES
o $http_status
-The http status of the response.
o $parser_mode
-Whether to parse the solr documents as SolrObject or SolrDocument instances.
o $success
-Was there an error during the request
o $http_status_message
-Detailed message on http status
o $http_request_url
-The request URL
o $http_raw_request_headers
-A string of raw headers sent during the request.
o $http_raw_request
-The raw request sent to the server
o $http_raw_response_headers
-Response headers from the Solr server.
o $http_raw_response
-The response message from the server.
o $http_digested_response
-The response in PHP serialized format.
PREDEFINED CONSTANTS SOLRRESPONSE CLASS CONSTANTS
o SolrResponse::PARSE_SOLR_OBJ -Documents should be parsed as SolrObject instances
o SolrResponse::PARSE_SOLR_DOC -Documents should be parsed as SolrDocument instances.
PHP Documentation Group SOLRRESPONSE(3)