[Dxspider-support] Two Spider nodes on the same linux box

Dirk Koopman djk at tobit.co.uk
Thu Jan 17 23:03:30 GMT 2008


Luigi Carlotto wrote:
>> try checking the last one by logging in as root and typing:-
>>
>> su -c "DXSPIDER_ROOT=/home/sysop2/spider perl
>> /home/sysop2/spider/perl/cluster.pl > /dev/tty8" sysop2
>>
>> all on one line.
> 
> Tryed it.
> 
>> It should a) run and b) in a "ps aux" should be owned by sysop2
> 
> The system reply me:-
> 
> [root at linux ~]# su -c "DXSPIDER_ROOT=/home/sysop2/spider perl 
> /home/sysop2/spider/perl/cluster.pl > /dev/tty8" sysop2
> bash: /dev/tty8: Permission denied
> [root at linux ~]#
> 

That gets a bit more complicated.

Do an: ls -l /dev/tty[0-9]

I get:-

crw-rw---- 1 root root 4, 0 2008-01-16 23:36 /dev/tty0
crw------- 1 root root 4, 1 2008-01-16 23:36 /dev/tty1
crw------- 1 root root 4, 2 2008-01-16 23:36 /dev/tty2
crw------- 1 root root 4, 3 2008-01-16 23:36 /dev/tty3
crw------- 1 root root 4, 4 2008-01-16 23:36 /dev/tty4
crw------- 1 root root 4, 5 2008-01-16 23:36 /dev/tty5
crw------- 1 root root 4, 6 2008-01-16 23:36 /dev/tty6
crw-rw---- 1 root root 4, 7 2008-01-16 23:36 /dev/tty7
crw-rw---- 1 root root 4, 8 2008-01-16 23:36 /dev/tty8
crw-rw---- 1 root root 4, 9 2008-01-16 23:36 /dev/tty9

You need to arrange for a chmod 0666 /dev/tty[89]

I would put that in /etc/rc.d/rc.local

Otherwise you have to play around with udev and that is not for the 
faint of heart.

Are you running X? Because that will be taking tty7, 8 or 9 depending on 
which distro you are using.

Maybe try /dev/tty10 or tty11

Dirk



More information about the Dxspider-support mailing list