Search Results

Search: Posts Made By: vidhyaS
3,166
Posted By Corona688
That question is so common it's in our FAQ. cron...
That question is so common it's in our FAQ. cron has a very minimal PATH compared to a user shell. You can either set your own PATH, or . /etc/profile to get a proper default PATH, or call parallel...
7,906
Posted By fpmurphy
Probably because of incorrect variable scope. ...
Probably because of incorrect variable scope. See PHP: Variable scope (http://php.net/manual/en/language.variables.scope.php). You are using $aid outside the loop.
59,812
Posted By kshji
If you need expand $1 before do curl, then $1...
If you need expand $1 before do curl, then $1 can't be insite ' ' and if you need " ", then

curl -H "Content-type: application/json" -H "Accept: application/json" --data-binary '{"body" :...
59,812
Posted By jayan_jay
I am getting the value.. Are you using in this...
I am getting the value.. Are you using in this way..

$ cat test.sh
#!/bin/bash
echo "$1"
$ echo $a
who is a buddy?
$ sh test.sh "$a"
who is a buddy?
$
59,812
Posted By ctsgnb
# cat eu echo $1 # a="who am i" # sh eu $a ...
# cat eu
echo $1
# a="who am i"
# sh eu $a
who
# sh eu "$a"
who am i
#

Show us what you have , what you type, what you get, and what is in your script.
7,259
Posted By Neo
Here are the PHP cURL options...
Here are the PHP cURL options (http://www.php.net/manual/en/function.curl-setopt.php).

Why not break your command line down into each flag/option and do the conversion step-by-step for the benefit...
2,536
Posted By itkamaraj
if your grep support -A and -B then you can try...
if your grep support -A and -B then you can try this.

A - after
B - before


grep -B 1 "Exception" filename



awk '/msg=/{m=$0} /Exception/{ if (m)print m; print $0; m=0}'...
7,259
Posted By fpmurphy
Yes, you have to write a few more lines of code...
Yes, you have to write a few more lines of code but you really should be using libcurl via the built-in PHP curl support - not the curl utility.
2,536
Posted By sk1418
does this help? awk '/msg=/{m=$0} /Exception/{...
does this help?
awk '/msg=/{m=$0} /Exception/{ if (m)print m; print $0; m=0}' yourLog.txt
Forum: Programming 06-10-2011
12,291
Posted By itkamaraj
check here... debugging - How do you debug...
check here...

debugging - How do you debug PHP scripts? - Stack Overflow (http://stackoverflow.com/questions/888/how-do-you-debug-php-scripts)
30,691
Posted By Scott
uuencode is in sharutils: (example, for Red...
uuencode is in sharutils:

(example, for Red Hat, ...)

# yum whatprovides */uuencode
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
...
...
......
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 07:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy