Using Redhat VIA SSH client.


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Using Redhat VIA SSH client.
# 1  
Old 01-28-2009
Using Redhat VIA SSH client.

Alright, I'm not really sure how to say this, since my professor didn't really understand what I was saying, but we have a project in my operating systems class, and what we have to do is create a linux IPC, so I'm using the msgget(), msgsnd(), msgrcv() functions. Now, I run a Windows machine, so I connect to our Linux cluster VIA vpn + ssh client, and I do have my permissions set to read/write/execute my files. So when I go to execute my file, my msqid (the ID that is returned from msgget()) is -1, but, it has previously worked... I was able to send/receive messages, but when I exited the SSH and relogged on, I all of a sudden can't do it.

So (this is where it gets really confusing) what I've noticed is this... when I type ipcs (I'm assuming this gives you the users that are currently using the IPC channels?), it shows who else is logged on... now I've noticed that my program will run correctly if the only other person logged on has perms 666, but when I log on and get the msqid as -1, I've noticed in ipcs that there is someone that has perms 660... and I've tested this numerous times... sometimes I connect this guy with perms 660 isn't there, and I can run the program fine, but whenever he's there, I cannot get the program to run.

What I want to know is, do I get the -1 as the msqid because this guy's there, or is it coincidence? I mean, it doesn't make sense to me at all, and like I said, I couldn't get through to my professor as to why I couldn't get it working, but if anyone needs more information, like if you want to see what I have set as what, then ask. Also, these people logged on are not using my key that I send in msgget().
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

What SSH Client do you Use?

Most of you probably use PuTTy, but I was wondering if there were any other good alternatives. So, what SSH client do you use? (2 Replies)
Discussion started by: erich76
2 Replies

2. Solaris

SSH Client

Hi Gurus, I need an SSH client to connect to a Solaris server from windows and run a few scripts. I am able to put/pull files using "psftp" using below command: psftp -l <username> -pw <password> <hostname> -b <batchfile> However i am unable to find an equivalent for ssh. I tried... (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies

3. Shell Programming and Scripting

poderosa ssh client on hp-unix

I have tools -> options -> terminal -> buffer -> 999999 but when I scroll up, I often lose what I scroll up to. This always happens when I am connected to oracle in sqlplus. This has never happened to me with poderosa in Sun Solaris or Linux and I have never had to set any variables or... (1 Reply)
Discussion started by: guessingo
1 Replies

4. UNIX for Dummies Questions & Answers

SSH using the shell on the client side -- possible?

I have identical scripts on two machines: one a laptop running Ubuntu 9.04, and the other a Windows XP desktop running Cygwin. The files I'd like to process are on the Windows machine. Running the script in Cygwin engages eight calls to an external executable and spins off who knows how many forks... (1 Reply)
Discussion started by: SilversleevesX
1 Replies

5. Filesystems, Disks and Memory

NFSv4 on Netapp and Redhat 5.3 as Client

Hi Folks! I'm new in using NFSv4 and do have a little trouble. I had a partition working with NFSv3, at the beginning i couldn't see on the client the German umlauts letters {ö,ä,ü} a manipulation of the LANG environment variable helped and the filenames with this letters were shown normally... (2 Replies)
Discussion started by: oku
2 Replies

6. Red Hat

Redhat nfs client hangs after 5 minutes

New at NFS. 3 machines at hand 1 RedHat nfs Client which is connected to a spectrometer (chemistry Instrument): # uname -a Linux BH083108 2.6.9-78.0.17.ELsmp #1 SMP Thu Mar 5 04:52:17 EST 2009 i686 i686 i386 GNU/Linux # cat /proc/version Linux version 2.6.9-78.0.17.ELsmp... (9 Replies)
Discussion started by: hpg4815
9 Replies

7. HP-UX

SSH client

As user root and with some users I can use ssh to connect to remote hosts. But with a specific user I can't use ssh client because: $ ssh OpenSSL version mismatch. Built against 90807f, you have 90703f Is it a $PATH problem or what? HP-UX version is 11.11. (2 Replies)
Discussion started by: untamed
2 Replies

8. UNIX for Dummies Questions & Answers

SSH client

How can I use ssh client with proxy support? If possible: with proxy chain support. :) (2 Replies)
Discussion started by: zylwyz
2 Replies

9. Red Hat

How to configure a Redhat 9.0 as NIS+ client

I would like to know how to configure a Redhat 9.0 as NIS+ client. I have seen the post of larry, but it is not enough information for me to do the configuration. Could anyone tell me how to do it? Please help! Thank you! (3 Replies)
Discussion started by: alexhon
3 Replies

10. Cybersecurity

What's the difference between an SSH Client and an SSH Server?

Eh... yeah. What the title says. :D (1 Reply)
Discussion started by: PSC
1 Replies
Login or Register to Ask a Question