Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: sandholm
1,237
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,285
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,327
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...
5,684
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.
16,578
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...
8,165
Posted By sandholm
set $var var="$*"
set $var
var="$*"
Forum: Solaris 05-04-2010
3,860
Posted By sandholm
google pam_mkhomedir. You'll find links for...
google pam_mkhomedir. You'll find links for Linux & Solaris.
11,732
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,264
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,398
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
17,304
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
17,304
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,398
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. ...
13,243
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,780
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,780
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,445
Posted By sandholm
ls out_cpty_* | wc -l
ls out_cpty_* | wc -l
11,754
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
4,495
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...
25,948
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...
25,948
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,179
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,406
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...
13,669
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,695
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

 

Featured Tech Videos

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