- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: run batch error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2009 10:22 PM
05-17-2009 10:22 PM
run batch error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2009 10:50 PM
05-17-2009 10:50 PM
Re: run batch error
- my car makes a funny rattling sound when I drive it...
* OK can I take a look at it?
- No I didn't bring it with me
* ah well - not sure I can help you then
You get the point? You have a script that does something (which apparently involves a scp, but who knows what else) - you get an error message from it, and you want help fixing it, but you haven't shared the script
who knows *where* that error message comes from - could be anywthing - if I were to guess, I'd say there's some code in there that's assuming you are attached to a terminal, such as some login .profile sourcing which might come from soing a "su - user" somewhere in the script - but as you didn't share any details, its not easy to help any further...
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2009 11:03 PM
05-17-2009 11:03 PM
Re: run batch error
You have to the right group and please post you script, so you get results very fast.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2009 11:16 PM
05-17-2009 11:16 PM
Re: run batch error
scp edp_usr@192.168.0.2:/tmp
Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2009 11:28 PM
05-17-2009 11:28 PM
Re: run batch error
somehow I doubt it, as that appears to be half of a scp statement... posting fragments isn't going to work... please post the cron entry and the full script
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2009 11:56 PM
05-17-2009 11:56 PM
Re: run batch error
while I set ssh without password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2009 12:05 AM
05-18-2009 12:05 AM
Re: run batch error
Can you upload your script ?
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2009 12:11 AM
05-18-2009 12:11 AM
Re: run batch error
and that's what appears in cron is it?
I can see _no_ way that this would cause the message you are seeing, which makes me think there's more to your script than just this one line.
If you are not prepared to help yourself by providing the right information, you're unlikely to get a satisfactory outcome...
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2009 01:02 AM
05-18-2009 01:02 AM
Re: run batch error
the is really the script that I run at cron , but the message is happens in RH linux server ,
if the message is caused from the incorrect TERM setting , can I add the TERM setting to the batch job ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2009 01:18 AM
05-18-2009 01:18 AM
Re: run batch error
So the googling on error message in question seems to indicate that it comes from the "tput" command, which again suggests that this comes from a login operation somewhere (like an entry bin a .profile or .bashrc or similar)
But as we are still flailing around trying to understand you end-to-end process, it's hard to say...
- you have a cron job that is a simple scp command... does that cron run on HP-UX or RedHat?
- *where* do you see the "No value for $TERM and no -T specified" message? at what point during the operation and in a log, or seomwhere else
Is HP-UX involved in this at all? If not you've posted in the wrong forum...
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2009 01:22 AM
05-18-2009 01:22 AM
Re: run batch error
If you don't need the standard output and standard error message produced by the script just redirect the outputs to /dev/null like this in cron
0 2 * * * <script with full path> >/dev/null 2>&1
Hope this will fix..
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2009 01:29 AM
05-18-2009 01:29 AM
Re: run batch error
- you have a cron job that is a simple scp command... does that cron run on HP-UX or RedHat? --> Redhat
- *where* do you see the "No value for $TERM and no -T specified" message? at what point during the operation and in a log, or seomwhere else --> I got mail that have this error ,
Is HP-UX involved in this at all? If not you've posted in the wrong forum...
--> the command run on HP-UX works without any problem , but have the problem in RH .
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2009 03:08 PM
05-18-2009 03:08 PM
Re: run batch error
I don't think this is coming from the scp command. You mention using ssh as well. It is possible that ssh is throwing this error because it's running from a batch job with no controlling terminal. It tells you exactly what is wrong - either set up a valid $TERM or utilize the "-T" option, which the man page says "Disable[s] pseudo-tty allocation".
As stated, it would be easier if you could post the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2009 09:29 PM
05-18-2009 09:29 PM
Re: run batch error
Thats true first you post your script then it will be easy to catch your error.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2009 11:45 PM
05-18-2009 11:45 PM
Re: run batch error
try to add
-o BatchMode=yes to scp command.
e.g.
scp -o batchmode=yes /local/file remote:/file
Jean-Yves