LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2011, 03:37 PM   #1
c a g a t a y
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Rep: Reputation: Disabled
CronJob Run URL Problem


Hi all

I wanna run below URL with Cron command
But cant find exact command

http://www.example.com/forum/index.php?action=duyuru

Tried;
wget --spider "http://www.siteadi.com/forum/index.php?action=duyuru"

wget -o
wget -q

All of them unsuccessful
Does this URL must be end with *.php
Any idea?

Regards
 
Old 10-08-2011, 07:51 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Hello,

What exactly are you trying to do with the URL? View it? Download it? Post/Get data to the page? Knowing more information like this will better assist us to help you.

Cheers,

Josh
 
Old 10-09-2011, 03:30 AM   #3
c a g a t a y
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
I wanna explain like that;

When I put this URL to my browser's adress line and hit to Enter,
it posts to members a birthday email...

I dont know whether this is view?post?get?

http://www.example.com/forum/index.php?action=duyuru
 
Old 10-09-2011, 06:24 AM   #4
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
you should use lynx not wget (Wget is a free software package for retrieving files using HTTP, HTTPS ...)

or maybe PHP cli like "php /path/to_myscript/script.php"
where script.php contains the URL line and the code to open it like this "header('Location: ..."

Last edited by lithos; 10-09-2011 at 06:30 AM.
 
Old 10-09-2011, 07:01 AM   #5
c a g a t a y
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
my URL does not end with php
i'll try and say the result of lynx command
but i dont know how is the lynx command?
 
Old 10-09-2011, 07:51 AM   #6
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
it doesn't matter if URL is not PHP, it's the PHP 'parser' that will open the url which you specify in the
" header( 'Location: http://www.yoursite.com/new_page.html' )" php file (this php file can be used as "script" in this case)

Lynx can be run like: lynx "my_site url"
 
Old 10-09-2011, 08:19 AM   #7
c a g a t a y
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
I set command line like this:

lynx "http://www.mysite.com/forum/index.php?action=dogumgunu"

an email arrived with below message:

Code:
  Your Terminal type is unknown!

  Enter a terminal type: [vt100] 
TERMINAL TYPE IS SET TO vt100
(B)0[1;24r[m[?7h[?1h=[H[J[22B[J[H[K
[K
[K
[K
[K
[K
[K
[K
[K
[K
[K
[K
[K
[K
[K
[K
[K
[K
[K
[K
[K
[0;7mGetting http://www.mysite.com/forum/index.php?action=dogumgunu[m              [22;67H
[J[1A[0;7mLooking up www.mysite.com[m[K
[J[1A[0;7mMaking HTTP connection to www.mysite.com[m
[J[1A[0;7mSending HTTP request.[m                       [22;22H
[J[1A[0;7mHTTP request sent; waiting for response.[m
[J
[24;1H
[?1l>
 
Old 10-09-2011, 10:05 AM   #8
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Tried;
wget --spider "http://www.siteadi.com/forum/index.php?action=duyuru"
what should the output be (this link only opens the site with webhosting offers)?

Quote:
I wanna explain like that;

When I put this URL to my browser's adress line and hit to Enter,
it posts to members a birthday email...
How ?
if you just put this line into browser how could it send something (email or whatever) unless it is running a script on that server ?
Probably the line
Code:
http://www.siteadi.com/forum/index.php?action=duyuru

should containt some message like
http://www.siteadi.com/forum/index.php?action=duyuru?"hapyy birthday"
Please post your complete code (what you enter in browser) or whatever you use to 'run'/send the message to make it scripted running in cron.

Last edited by lithos; 10-09-2011 at 10:22 AM.
 
Old 10-09-2011, 12:58 PM   #9
c a g a t a y
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
there is running a script that post an email to the members
 
Old 10-09-2011, 01:04 PM   #10
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
ok, but how do you 'run' it ? what is the URL address in your browser ?

if
Code:
http://www.mysite.com/forum/index.php?action=dogumgunu
then you can do nothing about it, because Lynx is a text web browser, no graphic/flash or other fancy stuff...

you should have the right URL 'code' to achieve what you want.
 
Old 10-09-2011, 01:08 PM   #11
c a g a t a y
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Dear Lithos
I am not dealing with Linux
My site is a SMF forum (php) and this URL runs seamlessly

What I want to do and what I need a linux command is for CronJob
Scheduled action

Forget what is script and where is the php file...This URL is running and sending mail

I just need an EXACT COMMAND for Cron

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure cronjob to run every 45 days somupl86 Linux - General 1 11-19-2010 08:33 AM
run cronjob once every three months noir911 Linux - Server 2 04-30-2010 04:30 PM
cronjob to run every 15 minutes? your_shadow03 Linux - Newbie 5 11-19-2009 11:58 PM
[SOLVED] make cronjob run every 10mins qwertyjjj Linux - Newbie 2 08-13-2009 09:06 PM
why do these cronjob not run? SheldonPlankton Linux - General 1 01-05-2005 09:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration