wget -d --header="Content-Type:application/xml" --post-data="$(cat <your xml file>)" http://sample.sample.com/api
How do i use this function in php?
I want also to get the response from this function.
i have a variable in php the viable is like this
$xml = '<sample>
<Request target="test">
</Request>
</sample>'
This is the xml that i want to post.
I trie
I have created a Shell Script as below
Sample.sh
echo "Hi there"
I also added cron job in cron tab which is under /etc/crontab as below
* * * * * /home/Sample.sh > /home/Sample.txt
I have created the Sample.txt file in /home/ directory.
I have also checked the permission for read and write for both the file
When I execute the Sample.sh file it works fine.it writes in Sample.txt file
Hi all,
I have a tab-delimited text file of size 10Mb. I am trying to count the number of lines using,
Code:
grep -c . sample.txt
or
Code:
wc -l < sample.txt
or
Code:
awk 'END {print NR}' sample.txt
All these commands shows the count as 1, which means they are reading only the first header line of the file.
I have the file like this
field1****This is, sample text ", here and there"@@@@field2****This is, sample text ", here and there"@@@@field3****This is, sample text ", here and there"@@@@
**** is the field separator
@@@@ is the record separator
i want the csv with like this
field1, "This is, sample text ", here and there""
so that i can open in microsoft excel and its displays in two columns
Hi all,
I have a requirement to convert a file from one format to another.
Parent file:
Quote:
Sample: ABCdefgh
domain: when you think abcd@tester.com
domain: abcdefgh@tester2.com
Goods for purchase:234
domain: efgh@anyother.com
Sample: PQRST
Sample: nmjkl
Sample: 123jjkl Mer.
Goods for purchase: No ChaNGE
to
Quote:
There are a lot of questions out there about how to convert a PDF file to a PNG image, but I'm looking to take a nice sharp PNG file and just basically wrap it or embed it in a PDF file without having it look blurry or fuzzy.
I realize with imagemagic installed I can do a simple conversion like:
convert sample.png sample.pdf
I've also tried a lot of the switches to set the depth, and also the
Kernel 2.6, GNU (Slackware 12.0).
KDE 3.5.7
Thunderbird 2.0.0.4
Hi:
Code:
root@darkstar:/usr/share/sounds# file alsa/Front_Center.wav
alsa/Front_Center.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 48000 Hz
root@darkstar:/usr/share/sounds# file pidgin/receive.wav
pidgin/receive.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 22050 Hz
root@da
I added a sample text file in Android res/raw folder and I am trying to add each line of the file into a String array list.
For e.g., say the sample text file contains the following lines
Sample Line One
Sample Line Two
Sample Line Three
I would like to add these three sentences as three Strings into a String Array List.
I have a file in /var/www/sample/index.php. the php file will add text to sample.txt file.
Now i want to automate this by cronjob in centos
i have added my cron code in /etc/crontab as following
* * * * * root var/www/sample/index.php
But the above cron is not running.
Any guesses on why this happens.
Is there a way to interpret where i go wrong during execution of cron.
Thanks in advance