LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-25-2012, 10:15 AM   #1
Raakh5
Member
 
Registered: Mar 2012
Posts: 174

Rep: Reputation: Disabled
Cron tab error


Hello,

I am getting following crontab error:

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 [21B [0;7m Getting http://www.myDomain.com/servlet/BulkSavedCVs?category=1 [m
 [0;7m Looking up www.myDomain.com [m  [K
 [0;7m Making HTTP connection to www.myDomain.com [m
 [0;7m Sending HTTP request. [m                                  [22;22H
 [0;7m HTTP request sent; waiting for response. [m

 [24;1H
 [?1l >
My cron tab:
Code:
0 * * * * /usr/bin/lynx http://www.myDomain.com/servlet/BulkSavedCVs?category=1&folderId=01&noOfFiles=200
Please advise

Thanks
 
Old 03-25-2012, 11:03 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Raakh5 View Post
Hello,
I am getting following crontab error:

Code:
 Your Terminal type is unknown!
My cron tab:
Code:
0 * * * * /usr/bin/lynx http://www.myDomain.com/servlet/BulkSavedCVs?category=1&folderId=01&noOfFiles=200
Please advise
Last time I answered a question for you, you had some not-nice things to say.

Read the error. It's telling you very clearly that the command doesn't know what kind of terminal you're using. If you then go and read the man page on the lynx command, you'd see the "-term=" flag...that will very obviously tell lynx what kind of terminal you're using, on the command-line. So either put your lynx command into a shell script and specify it, or add the -term flag to the line above.
 
1 members found this post helpful.
Old 03-25-2012, 01:35 PM   #3
Raakh5
Member
 
Registered: Mar 2012
Posts: 174

Original Poster
Rep: Reputation: Disabled
Hello,

I said sorry in that post and again getting apology for any inconvenience

I just tried to run this on command prompt to check before making .sh file but its not running
Code:
# lynx http://www.myDomain.com/servlet/BulkSavedCVs?category=1&folderId=01&noOfFiles=0
[2] 31013
[3] 31014
#
regarding "-term=" what information I provide after = signs of -term?

Thanks again & best regards
 
Old 03-25-2012, 02:10 PM   #4
Raakh5
Member
 
Registered: Mar 2012
Posts: 174

Original Poster
Rep: Reputation: Disabled
Hi again,

Code:
[root@myServer ~]# echo $TERM
vt100
[root@myServer ~]# lynx -term=vt100 http://www.myDomain.com/servlet/BulkSavedCVs?category=1&folderId=01&noOfFiles=0
[4] 1069
[5] 1070
Did you mean the above? I don't know why its not working as I checked and my servlet not invoked. Its not working due to passed variables??

Best regards
 
Old 03-25-2012, 02:30 PM   #5
Raakh5
Member
 
Registered: Mar 2012
Posts: 174

Original Poster
Rep: Reputation: Disabled
Hello,

The problem fixed with wget -1 <"URL">

Best regards
 
  


Reply



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
Cron tab error: No entry for terminal type "unknown"; sing dumb terminal settings. shlomi.s Linux - Software 12 09-06-2011 09:20 AM
Cron Tab talat Solaris / OpenSolaris 1 06-07-2007 12:04 AM
help in cron tab framedrelay Programming 1 11-15-2006 07:49 AM
cron tab, what do you use it for? Fritz_Monroe Linux - Newbie 12 09-28-2006 02:54 PM
cron tab thefedexguy SUSE / openSUSE 4 07-06-2006 11:03 AM

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

All times are GMT -5. The time now is 08:10 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
Open Source Consulting | Domain Registration