Quantcast
Channel: UNIX and Linux Forums
Browsing all 16232 articles
Browse latest View live
↧

Bash error when using quote

Hello. Someone can it tell me why the following syntax is incorrect. And so how to treat the filenames with spaces. Code: linux:~ # ls "/usr/NX/var/log/*.log" ls: cannot access /usr/NX/var/log/*.log:...

View Article


User restriction on C/C++ compiler on AIX

Hello, I am curious that is there a way I can restrict a user or a set of users to execute the C/C++ compiler, basically what I want is to lock it down to a particular user and none of the other users...

View Article


Image may be NSFW.
Clik here to view.

I want to centralize user authentication

Right now it is just a simple environment consisting of a small number of CentOS boxes, but I would like to set up central user authentication to make things easier, especially as we expand (I've...

View Article

Mass account creation

By the company winning business from another outsource provider, I've suddenly inherited towards 300 servers and all accounts are local. One of the immediate tasks is to set up all the OS, DB, and app...

View Article

Get List of users+IPs

Hello! We have an AIX box (6.3), we are looking for a way to get list of logged in users and their IP. The issue we have is running Code: who -ub shows hostname and we are wanting to get the ip. Any...

View Article


Script execution

I need to call a script if the month end falls on Saturday or Sunday

View Article

Results Of A Variable Into An Array Using C Language

Can C add its results into an array like bash? For example using bash: Code: cat /etc/passwd **truncated for space ** gdm:x:109:118:Gnome Display Manager:/var/lib/gdm:/bin/false mysql:x:110:122:MySQL...

View Article

Dividing values within rows with awk?

Hello everyone, I have a dataset that looks like: Code: 1 2 3 4 5 6 I was wondering if was possible to divide values within rows: 1/2 3/4 5/6 I don't think using Code: awk -F"\t" '{ print $1/$2 }'...

View Article


Image may be NSFW.
Clik here to view.

Match or no match

Not sure if my attempt below is close but I am trying to match $1 of gene.txt to $2 of medicalexome.txt, and if there is a match then $2 $1 are copied to a new result.txt which is tab-delimited. If no...

View Article


Restarting/Resetting a USB Port?

Hello All, So I have been running into an issue with a USB Modem where if someone ends their dialin connection abruptly from the other side the modem gets stuck and I found that the only way to fix it...

View Article

Pattern find and delete

Hi Team, Could someone please help me on this .. While doing my day to day activity I use to delete manually the repeated ones .. For example 05 & 06 are my hosts.. Now I need to print only 05 and...

View Article

Script to test bookmarks

Does anyone have a script to test for invalid bookmarks? I have a ton of them and I'd bet that a good percentage could be dropped. Tnx

View Article

LVM PE. Best practice

Hi everyone. Unfortunately I can't find advice's about LVM Physical Extent for HPUX. As far as I know we can set for 1PE size from 1MB to 256 MB. But in what cases it should be different? Maybe exist...

View Article


Image may be NSFW.
Clik here to view.

Match and subtract two fields

Not sure quite how to do this, but I am trying to use $1 of LCH.txt (exact match) to look for a match in $1 of genes.txt. If a match is found then in a new file match.txt $1 $2 ($4-$3) are copied....

View Article

Image may be NSFW.
Clik here to view.

Du command and modified date in ssh

Hello, I am a new user to linux and having trouble completing this task. I want to list a directory of files and folders including the name, human readable size, and last modified date. So far I can...

View Article


Memcache in Nagios

Hello, I want to setup Nagios with service Memcache...We have Amazon Cloud..Please help me to setup this service on my Nagios Client. How to check Memcache is working or not on my server?? 1. Please...

View Article

Issue in using read keyword twice

Hi, I have a situation where i need to read line by line from a text pad and with each line , i need to take inputs from command line and do some process. Using below code i am not able to use 'read'...

View Article


Problem with Installing Perl Module in Fedora 20

Hi, I have downloaded Audio::Beep. I tried to install it through CPAN but i got YAML error. Then I have tried to install it manually. I tried all the instructions provided in README file. It worked but...

View Article

Remove leading dot and slash on relative paths with find

When I specify a directory by name the leading ./ is not shown: Code: $ find somedir/ somedir/a.bin somedir/target/out.bin But when I specify current dir it adds the ./ to the beginning of each result:...

View Article

Obfuscated "Hello World!" in Python 2.7.x...

Obfuscated Hello World! in Python 2.7.x This is seriously impressive:- Obfuscating "Hello world!" - Ben Kurtovic

View Article
Browsing all 16232 articles
Browse latest View live