Operating System - HP-UX
1820390 Members
3494 Online
109623 Solutions
New Discussion юеВ

Message : "no access to tty; thus no job control in this shell"

 
BONO_2
New Member

Message : "no access to tty; thus no job control in this shell"

Hello,

I need to run some commands on a server call sapbmGB from a server called sapbm5, I used the command file
remsh sapbmGB -n "su - oraqs1"
and I've the error message
"no access to tty; thus no job control in this shell"
Before I had also the message "stty : Unknown error", I've comment the line stty erase in /.profile ans /etc/profile.

I need to use this remsh command for the backup but it fails.
The command "remsh sapbmGB" is OK.

Thanks for your help,
Patricia.
7 REPLIES 7
RAC_1
Honored Contributor

Re: Message : "no access to tty; thus no job control in this shell"

If you just want a telnet session on host as user, you can do

remsh host -l "user_name"

Anil
There is no substitute to HARDWORK
Mark Grant
Honored Contributor

Re: Message : "no access to tty; thus no job control in this shell"

Presumably, this account is using the C shell. If so, you can ignore this error.

Never preceed any demonstration with anything more predictive than "watch this"
BONO_2
New Member

Re: Message : "no access to tty; thus no job control in this shell"

thanks for your answer but in fact I need to execute this command :
remsh sapbmGB -n "/home/tools/sauvegarde/backup_db_qs1 $journee"

As it failed I try to understand and in the script backup_db_qs1 I do "su - oraqs1"
that's why I tried tu execute
remsh sapbmGB -n "su - oraqs1"


Patricia.
Bruno Ganino
Honored Contributor

Re: Message : "no access to tty; thus no job control in this shell"

try remsh sapbmGB -n "su -oraqs1"

HTH
Bruno
Torino (Turin) +2H
Mark Grant
Honored Contributor

Re: Message : "no access to tty; thus no job control in this shell"

I could be wrong here but it looks to me like the failure you are getting is unrelated to the error message. As I mentioned before, the error you are getting shouldn't make the script stop working. It is just a little message telling you that you can't use job control which you probably aren't going to use anyway.
Never preceed any demonstration with anything more predictive than "watch this"
RAC_1
Honored Contributor

Re: Message : "no access to tty; thus no job control in this shell"

remsh sapbmGB -n "/home/tools/sauvegarde/backup_db_qs1 $journee

do

remsh sapbmGB -n ".profile_of_that_user;/home/tools/sauvegarde/backup_db_qs1 $journee"

Anil
There is no substitute to HARDWORK
Bruno Ganino
Honored Contributor

Re: Message : "no access to tty; thus no job control in this shell"

Patricia, perhaps is installed a firewall ?
Check this possibility.
Bruno
Torino (Turin) +2H