Search Results

Search: Posts Made By: sandholm
1,996
Posted By sandholm
sure, evaluate $REPLY (don't use DIR). REPLY is...
sure, evaluate $REPLY (don't use DIR).
REPLY is set to the "reply" entered by the user.
5,690
Posted By sandholm
Yes it is possible
I've done this before.
I installed cygwin on the target windows machine, configured sshd and exchanged keys with the remote Unix server.
Then used ssh to access the windows machine from Unix and...
Forum: Red Hat 01-04-2011
5,563
Posted By sandholm
finger
If it's installed, try using "finger":

[sandholm@sys1-lnx ~]$ finger news
Login: news Name: news
Directory: /etc/news Shell: /bin/sh
Never logged...
6,887
Posted By sandholm
This might help: ...
This might help:
https://sites.google.com/site/tfsidc/linux-tricks/processing-a-large-number-of-files

I suspect you're running into a shell limitation.
20,399
Posted By sandholm
If your hosting system (where the webserver is...
If your hosting system (where the webserver is running) is Linux, I would suggest looking at the use of inotify. A companion tool, incron, can then be used to setup a condition of when a file is...
10,507
Posted By sandholm
set $var var="$*"
set $var
var="$*"
Forum: Solaris 05-04-2010
4,390
Posted By sandholm
google pam_mkhomedir. You'll find links for...
google pam_mkhomedir. You'll find links for Linux & Solaris.
13,281
Posted By sandholm
Use twiddle.sh, located in $JBOSS_HOME/bin. call...
Use twiddle.sh, located in $JBOSS_HOME/bin. call with something like:
if twiddle.sh --server=$SOMESERVER -u $ADMIN_USER -p $ADMIN_PSW get jboss.system:type=ServerInfo 2> /dev/null 1>&2
then
...
3,731
Posted By sandholm
you might take a look at this (inotify), ...
you might take a look at this (inotify),
Filesystem Monitoring (Tom's Linux Tip's) (http://sites.google.com/site/tfsidc/filesystem-monitoring)
2,802
Posted By sandholm
[QUOTE=zxmaus;302342431]oooh yeah I heard that...
[QUOTE=zxmaus;302342431]oooh yeah I heard that already 20 years ago - and here we are ... still with the same proprietary operating systems ... probably more distributed than ever before.

Sounds...
Forum: Red Hat 08-09-2009
21,964
Posted By sandholm
I threw together a quickie little example...
I threw together a quickie little example web-page for "Giving Privileges to Users", that demonstrates the use of sudo, as well as the use of expect, for controlling interactive programs in batch. ...
Forum: Red Hat 08-09-2009
21,964
Posted By sandholm
You may use sudo to accomplish what you need. ...
You may use sudo to accomplish what you need. Ensure you disable the "requiretty" if you need to run sudo in batch (i.e. from a script). Ensure you add the user via the visudoers command, ensure to...
2,802
Posted By sandholm
All such negative responses. You must love...
All such negative responses.
You must love technology! You must be willing to put in the effort and discipline to learn.
Pay is not bad for the experienced. Start from the ground up. Learn C. ...
14,634
Posted By sandholm
If you're using Linux, then check out inotify. ...
If you're using Linux, then check out inotify.
See this: Filesystem Monitoring ?(Tom's Linux Tip's)? (http://sites.google.com/site/tfsidc/filesystem-monitoring)
Forum: Programming 07-10-2009
1,969
Posted By sandholm
Glad I could help. You can't go wrong with just...
Glad I could help.
You can't go wrong with just about anything from Stevens.
He was one of the best!
And there's sample code in the book.
Andy Tanenbaum is another good Unix author to read.
...
Forum: Programming 07-10-2009
1,969
Posted By sandholm
change current working directory (typically "/) ...
change current working directory (typically "/)
reset file access creation mask
disassociate from process group
do not reacquire control terminal
...besides what you already have
see "Unix...
3,844
Posted By sandholm
ls out_cpty_* | wc -l
ls out_cpty_* | wc -l
13,215
Posted By sandholm
You didn't indicate what release of Linux/Unix...
You didn't indicate what release of Linux/Unix you were using.
Check man pages for pam_login.
some setting may come from /etc/login.defs
5,466
Posted By sandholm
Don't know what version of apache you're using;...
Don't know what version of apache you're using; use at least apache2. If you suspect a memory leak, as indicated by the httpd/php5 processes consuming more memory, try setting the...
28,089
Posted By sandholm
Bash has built-in conversion tools. Consider the...
Bash has built-in conversion tools. Consider the following:

svn1:~# (( x = 0377 )); echo $x
255

This will assign x the octal value of 0377 (the leading 0 indicates an octal value), which...
28,089
Posted By sandholm
The bash shell has built-in conversions to handle...
The bash shell has built-in conversions to handle octal and hex numbers, consider the following:

svn1:~# (( x = 0377 )); echo $x
255

This example will set X to an octal value of 0377, which is...
6,619
Posted By sandholm
What you have looks fine, just replace the bc...
What you have looks fine, just replace the bc line with this:

X=`echo "scale=1;$X / 60/ 60" | bc` # Convert seconds to hours, with 1 decimal.

The "scale" variable defines your precision. It's...
7,657
Posted By sandholm
Take a look at the "last" command. It will...
Take a look at the "last" command. It will report who is logged in, if they're currently logged on, and will report the total time they were logged in.
As for diskuse, if your users are restricted...
16,259
Posted By sandholm
Even easier: date --date='05-JUN-1974'...
Even easier:

date --date='05-JUN-1974' '+%m-%d-%Y'

Example:
[root@scm-lnx svn_repo]# date --date='05-JUN-1974' '+%m-%d-%Y'
06-05-1974

Of course this assumes you're using Linux and your...
1,959
Posted By sandholm
What about case?
Let me add to the previous example:

case $USER in
[a-mA-M]* ) A;;
[n-zN-Z]* ) B;;
esac

This way you'll match independent of case.
You know how "users" are! ;)
Showing results 1 to 25 of 27

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