Search Results

Search: Posts Made By: tpietschmann
Forum: Red Hat 03-08-2013
1,327
Posted By tpietschmann
The current version is registered in...
The current version is registered in /etc/redhat-release.

---------- Post updated at 10:20 AM ---------- Previous update was at 10:17 AM ----------

I just saw this was a double post. Please be...
11,915
Posted By tpietschmann
you may use the scheduler (cron) if you have...
you may use the scheduler (cron) if you have permission to run a search command on the files you want to remove that are older than 60 days every night at midnight; directories may require a rm -R...
5,196
Posted By tpietschmann
you can get the results this way; it creates a...
you can get the results this way; it creates a field array and compares value1 in file1 with value2 in file2 and prints the matching values


nawk '{FS="|"} NF==1 {acc[$1]=1} NF>1 {if( ( $2 in acc...
Forum: Solaris 08-31-2009
10,205
Posted By tpietschmann
You may be getting blocked by wrappers which are...
You may be getting blocked by wrappers which are set up by default.

$ /usr/sbin/inetadm -l ftp|grep wrappers
default tcp_wrappers=TRUE

If that is the case you would get a closed connection....
29,296
Posted By tpietschmann
mailx is expecting body content. You may type a...
mailx is expecting body content. You may type a message and/or EOT with "." <ENTER>

if no body is expected:
mailx -s "test" somaddress@somewhere.com < /dev/null

send a form letter:
mailx -s...
3,473
Posted By tpietschmann
Solaris manuals outline how to handle disabling a...
Solaris manuals outline how to handle disabling a serial console. You can read up on them here (http://docs.sun.com/app/docs/doc/817-0403/modconcepts-20809?a=view) found at docs.sun.com. Earlier...
3,188
Posted By tpietschmann
For character or symbol searches you should...
For character or symbol searches you should preface the string with quotes inside the code and send a quoted input to ensure that the grep will work.

i.e. grep "$1" directory.txt > /dev/null
...
Forum: AIX 04-24-2009
11,817
Posted By tpietschmann
If noone has made changes to your sshd_config...
If noone has made changes to your sshd_config file then that holds true. Since AIX now uses an OpenSSH (http://sourceforge.net/projects/openssh-aix/) build you can use the openssh sshd_config (5)...
Forum: Solaris 04-24-2009
3,486
Posted By tpietschmann
Use SUNs document website. They have extended...
Use SUNs document website. They have extended documentation for admin.

Administering the Secure NFS System (System Administration Guide: Resource Management and Network Services) - Sun...
4,344
Posted By tpietschmann
Without knowing a full example of text here is an...
Without knowing a full example of text here is an option.

You could wrap it in a loop:


awk -F"|" '{print $1, $2, $4, $5, $10}' File1.txt|tr '[:lower:]' '[:upper:]' > temp1.txt
awk -F","...
8,290
Posted By tpietschmann
not knowing your OS: solaris: passwd -s...
not knowing your OS:

solaris: passwd -s smithj
linux: passwd -S smithj
aix: perl -e 'print scalar(localtime( `lsuser -a lastupdate smithj` ))'

use printf to format to your liking
2,120
Posted By tpietschmann
reload/source the environment that started it in...
reload/source the environment that started it in the first place

> . $HOME/.profile
16,722
Posted By tpietschmann
use the plink program within Putty ...
use the plink program within Putty

C:\utils\PuTTY>plink -ssh root@192.168.0.109 uname -a
root@192.168.0.109's password:
Linux MyBookWorld 2.6.17.14 #1 PREEMPT Wed Jan 17 16:13:04 GMT 2007...
6,606
Posted By tpietschmann
no matter what rules you apply to prevent either...
no matter what rules you apply to prevent either of your desired options will result in circumvention. sudo bash gives them root access and then they can do what they want. If you want to achieve...
21,993
Posted By tpietschmann
Try changing your header: ...
Try changing your header:

hdr="To:xxxx@xxx.com\nFrom: \"vamsi krishna\" <xxx@xxx.com>\n\n"
21,993
Posted By tpietschmann
Most OS support the .mailrc file. Utilize the...
Most OS support the .mailrc file. Utilize the alias feature to define what you need.

Solaris: Mail Aliases (Solaris Advanced User's Guide) - Sun Microsystems...
Forum: Solaris 04-01-2009
22,653
Posted By tpietschmann
"." is a special character. You can change into...
"." is a special character. You can change into it this way:
cd /tmp.*
If that is the only dir with 4 or more characters starting with tmp then try moving it.
mv /tmp.* /tmp.old
134,942
Posted By tpietschmann
I would recommend using dos2unix to ensure no...
I would recommend using dos2unix to ensure no errant CRLF (^M) make it into the file.

dos2unix mynotepadfile | crontab -
Forum: Red Hat 03-26-2009
6,398
Posted By tpietschmann
Something in your script (like an error message)...
Something in your script (like an error message) is trying to be interactive, which cron does not support, hence the message. Try fixing your BODY parm lines with \ to ensure a contiguous line.
...
Showing results 1 to 19 of 19

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