Search Results

Search: Posts Made By: Ikon
4,537
Posted By Ikon
Perl array with row header
Here is the csv file file i have:


ServerName, IPAddress, Gateway, Notes
ServerA, 192.168.1.100, 192.168.1.1, This is some server
ServerB, 192.168.1.110, 192.168.1.1, This is some other server...
18,897
Posted By Ikon
I would check the error logs on the server you...
I would check the error logs on the server you are trying to ftp into.
Forum: Ubuntu 11-05-2010
2,895
Posted By Ikon
I know I can use that but I need it to use the...
I know I can use that but I need it to use the logon credentials for the person logged in, which is authenticated to Active Directory.

If I use the http_proxy, then when the password changes I...
Forum: Ubuntu 11-02-2010
2,895
Posted By Ikon
Likewise AD Authenication with proxy
I am running Ubuntu 10.04 on my laptop and have successfully joined it to our domain for authentication. we use a proxy server for internet access that requires the AD user and password. Even though...
18,672
Posted By Ikon
see: ...
see:

https://www.unix.com/shell-programming-scripting/20022-trim-whitespace.html
5,019
Posted By Ikon
This also works: */5 19 * * *...
This also works:

*/5 19 * * * /path/to/myscript.sh
1,839
Posted By Ikon
MYUSERS=`w -h | awk '{print $1}'` for user in...
MYUSERS=`w -h | awk '{print $1}'`
for user in ${MYUSERS}
do
if [ $user = "khagan" ]; then
echo "Username ${user} is logged in."
else
echo "Not...
1,839
Posted By Ikon
This will print a list of users logged in: w...
This will print a list of users logged in:

w -h | awk '{print $1}'


To get you started.
128,050
Posted By Ikon
/mnt is a directory under /. anything in...
/mnt is a directory under /.

anything in /mnt/CI_BACKUPS does NOT takeup space on /, but anything in /mnt does take up space.

Post the output of:

du -h --max-depth=1...
128,050
Posted By Ikon
If a process is filling the drive and not...
If a process is filling the drive and not releasing the space Rebooting the server should clear the problem.

Since the remote drive is mounted in /mnt/CI_BACKUPS make sure there are no large...
128,050
Posted By Ikon
This is why you put / (root) in a separate...
This is why you put / (root) in a separate partition or logical volume.

You need to delete some old logs from /var/logs/

---------- Post updated at 12:52 PM ---------- Previous update was at...
4,182
Posted By Ikon
perl check email script not seeing attachment
The following script does pull the sender and Subject of the email but it is not seeing the attachment name. I know there is an attachment.

I line in red SHOULD pull the filename out.

this line...
1,543
Posted By Ikon
a="abcdefg" echo ${a:0:5} output: ...
a="abcdefg"
echo ${a:0:5}

output:
abcde
18,098
Posted By Ikon
man cp # cp -Rp {olddir} {newdir} ...
man cp


# cp -Rp {olddir} {newdir}


This will copy all files and folders under {olddir}

-R = Recursive
-p = Preserve ownership (you probably want that too)
5,149
Posted By Ikon
sed 's/ *| */,/g' file or a shortened...
sed 's/ *| */,/g' file


or a shortened version of bartus11's

perl -pe 's/ *\| */,/g' file
Forum: Fedora 08-26-2010
3,967
Posted By Ikon
I use Ubuntu for desktop and multimedia systems...
I use Ubuntu for desktop and multimedia systems and for my Netbook.
I use CentOS (Free Redhat Enterprise Linux) for servers

Both will be around for a while. Ubuntu has LTS versions, which stands...
1,837
Posted By Ikon
try if [ ! $IS_FAILED ]; then ...
try


if [ ! $IS_FAILED ]; then
RESULT='pass'
echo "is a pass"
else
RESULT='fail'
echo "is a fail"
fi


or



if [ $IS_FAILED = "FAILED" ]; then
...
2,737
Posted By Ikon
be sure to use the full path for any commands you...
be sure to use the full path for any commands you are using. The users profile is not loaded when cron is run so if you stored any variables in there it would not be set at run time.
3,987
Posted By Ikon
Once the text file is put on another system it...
Once the text file is put on another system it will not be read only. Nothing you can do about a text file.

See my post above for other ideas.
3,987
Posted By Ikon
You would have to convert the file to something...
You would have to convert the file to something that would allow readonly.

You could create a pdf or an image from a text file.

But there are always programs available to hack/change the...
3,302
Posted By Ikon
Lookup /etc/hosts.deny and /etc/hosts.allow this...
Lookup /etc/hosts.deny and /etc/hosts.allow this will do what you want.
11,149
Posted By Ikon
and you cant figure that out? Look here! ...
and you cant figure that out?

Look here!

....
echo "$MONTH$DAY$YEAR"
11,149
Posted By Ikon
Try this: yest.sh date '+%m %d %Y' | ...
Try this:

yest.sh

date '+%m %d %Y' |
{
read MONTH DAY YEAR
DAY=`expr "$DAY" - 1`
case "$DAY" in
0)
MONTH=`expr "$MONTH" - 1`
case...
Forum: HP-UX 08-19-2010
3,985
Posted By Ikon
root has access to run anything. Use sudoers and...
root has access to run anything. Use sudoers and only allow the users to run specific commands and dont allow root access.
1,832
Posted By Ikon
This was created by a user that has need removed,...
This was created by a user that has need removed, or UID# was changed.
Showing results 1 to 25 of 500

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