Search Results

Search: Posts Made By: hce
866
Posted By hce
List files output only for the last line
Hi,

"ls -tl directory1" will list files to be sorted in mtime, but I don't want to see all the files in each directory, I want to only see output the last line (the oldest mtime) for each...
714
Posted By hce
Shell script filtering
Hi,

I have a file contains log information per line:
user=test1 group=test1 ctime=1411615875 qtime=1411615875 etime=1411615875 start=1411615876 resources_used.mem=390792kb...
1,110
Posted By hce
How to find remote IP addresses that applications are scanning them?
Hi,

I have a web server running on Debian 6.0.4 in a computer outside my university, but the web URL is blocked by my university, the security group of the university said because it was scanning...
8,976
Posted By hce
Thanks gull04...
Thanks gull04 (https://www.unix.com/members/37127.html) for the link of Memtest86, I heard that a lot, but not quite sure if it is the most popular tool for Linux memory as well.



You right,...
8,976
Posted By hce
Which memory test tool is popular on CentOS 6?
Hi,

Which tools or method is popular, simple and effective, to check memory such as bad sector, throughput and performance?

Thank you.

- j
Forum: Linux 08-20-2014
4,222
Posted By hce
Disable loading kernel modules
Hi,

I am running CentOS 6.5 and I want to remove auto loading 8021q and garp modules, but there are no configure files in /etc/modprobe.d define bot modules.

I even added both module names to...
8,124
Posted By hce
How to pass password to "su account" in script?
Hi,

I need to run a test script to check all test accounts, is it possible to pass the password to su in following command? I've got following error:

$ echo "${password}" | su ${test_account}...
4,883
Posted By hce
Thanks for the response, but that won't work as I...
Thanks for the response, but that won't work as I said the known_hosts is not a plain text, it has been hashed by ssh-keygen.
4,883
Posted By hce
How to check or remove IP address from a hashed known_hosts file?which
Hi,

In my server, the hostname and IP addresses are added to the known_hosts which then be hashed by ssh-keygen -H -f. Is it possible to check if an IP address has already been added to the hashed...
4,124
Posted By hce
deleted
deleted
2,398
Posted By hce
Hmm, works for local authentication, but does not...
Hmm, works for local authentication, but does not work for LDAP authentication, a little bit tricky .....
3,133
Posted By hce
Timeout to abolish ssh connection command it takes too long
Hi,

I am running a ssh connection test in a script, how can I add a timeout to abolish the process if it takes too long?

ssh -i ~/.ssh/ssl_key useraccount@computer1

Thank you.

- j
5,266
Posted By hce
Grep result from dd command
Hi,

I am running following command in a bash script for testing IO and use grep to get throughput number, but it did not work, it displayed everything:

dd if=/dev/zero of=/dev/null bs=1G...
2,398
Posted By hce
Can adding to a new group be effective in current login environment without re-login?
Hey folks,

When a user is added to a new group, the user has to be log out and log in again to make the new group effective. Is there any system command or technique to refresh user group ID...
1,468
Posted By hce
You are right. The script was running from...
You are right. The script was running from clicking a python wx button, the issue I've just figured out is there is another command needs be run before it as following script.

exec su -l ${user}...
1,468
Posted By hce
Why commands inside bash script lost effectiveness?
Hi,

I have a bash script to run many system commands on CentOS machine, but I am puzzled by some commands had no effect on parent environment.

For example, I want to refresh the desktop xdg...
Forum: Linux 04-03-2014
4,711
Posted By hce
How to display all daemon processes in priority order?
Hi,

Is there any way to run chkconfig --list and to display all daemon processes in PRIORITY order, not in alphabetic order?

Thank you.
1,514
Posted By hce
Terrific, thank you so much.
Terrific, thank you so much.
1,514
Posted By hce
Thanks for all response, that are all great, but...
Thanks for all response, that are all great, but it is a little bit complicated, I forgot to mention that the search string needs to include "properties = ......" for only the line of "properties ="...
1,514
Posted By hce
Grep regex filter
Hi,

How can I run the grep search in a script to only include compute, not bigcomputer in following search input?

" properties = local compute"
" properties = local bigcompute"

Thank...
1,999
Posted By hce
Will authconfig make permanent change or lost after reboot?
Hi,

I made following configuration to create user directory:

# authconfig --enablemkhomedir --update

But the directory is created as permission 755, I'd like to modify the script to change...
892
Posted By hce
How can I take input parameters after the first one?
Hi,

Is there a simple way to take input of parameters after the first one? As following example, if I assign others=$2, it only takes the second one, if I assign others=$@, it will include the...
1,343
Posted By hce
Thanks for the response, resolved. Kind...
Thanks for the response, resolved.

Kind regards.
1,343
Posted By hce
Ssh agent forwarding in script did not work
Sorry for the wrong question.
20,397
Posted By hce
Thanks MadeInGermany and all other responses,...
Thanks MadeInGermany and all other responses, that did the trick.

Greatly appreciated.

hce
Showing results 1 to 25 of 49

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