Search Results

Search: Posts Made By: ajg
4,118
Posted By ajg
You could try using 'sed'... To replace 'bob'...
You could try using 'sed'...
To replace 'bob' with whatever's in the variable $jim, do:

#/bin/sh
jim=<some-calculation>
cat <filename> | sed "s/bob/$jim/g"

It's a lot nicer... :)

NB: If...
4,923
Posted By ajg
Most systems have 'chsh' setuid anyway, so...
Most systems have 'chsh' setuid anyway, so changing your shell
shouldn't be a problem. (usermod isn't setuid).
3,433
Posted By ajg
By 'normal file' you mean what exactly?...
By 'normal file' you mean what exactly? (install-unix.exe?)

ISO images are by far the most common distribution method for
unix/linux (and bsd!) systems.

The ISO is ready to burn onto CD, so...
Forum: Cybersecurity 07-04-2001
9,165
Posted By ajg
By session, I take it you mean a normal login...
By session, I take it you mean a normal login session through the likes of ssh or telnet?...

Luckily this can all be done through environment variables... For example:

To kill the session after...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 06:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy