Jeff Herring · Jan 10, 2022

calling csession from .bash_profile

I am trying to emulate a behavior we used to have on an older Cache' system, namely the ability to call "csession cache" from inside of .bash_profile.

On the older system, passwordless users were allowed, now password is required.

The desired behavior is to have user log into linux and go directly into our cache application, which is character-based.

I have tried this technique, without success:

csession cache < myfile.txt.  where myfile.txt contains two lines, username on first line, password on second line.

(user is define to have a startup namespace and routine)

This technique appears to add extraneous line ending characters, and cause my application to exit immediately.

I have tried various other things like changing line endings, etc. nothing seems to work.

Is this even possible with later versions of Cache'?

$ZV: Cache for UNIX (Red Hat Enterprise Linux for x86-64) 2017.2.2 (Build 867_4) Fri Apr 24 2020 17:42:00 EDT
0 177
Discussion (2)1
Log in or sign up to continue

Hmm, why do you need to do it with .bash_profile? Why not just set it as a shell, instead of bash

And about passwords, the best and only right way in your case is to enable OS-Authentication. In this case users will go inside without a password prompt.

Thank you, I have achieved the correct behavior with two modifications: 1) set users "shell" to be csession cache and 2) enable OS level authentication.

Thank you for your assistance