Quantcast
Browsing all 16232 articles
Browse latest View live

Wish to install Linux Mint 13, Mepis and Solus OS. Help!

hi everyone, I have a core 2 duo PC with ASUS motherboard with 2 GB ram and ATI graphic card. I already have Windows XP installed on the PC. I also wish to install 32 bit 1- Linux Mint 13, 2- Mepis and...

View Article


string replace in huge file

I need to parse a huge file... with some strings like this: <li class="website-feature"><a href="http://some.changingurl.com" ..(some changing classes)..> I need to change the above to:...

View Article


help with timestamp of the file

Hi ,i want to convert the timestamp of file into yyyymmdd hh:mi:ss format.I tried ls -l test |awk -F" " '{print $6,$7,$8}' and the result I got was Jul 16 21:31.Can some one help me how do i get his...

View Article

need help with pbrun su in shell script

Hello , I am logging in linux with my userName and using the pbrun su appName for changing permissions of files (owner of the files is appName). Now I am trying to do same within shell script but...

View Article

Help with renaming file using sed

Hi, I am currently updating a script, It should do the ff: rename the YYYYMMDD in mainlog.YYYYMMDD to $NEW_DATE I was ask to use sed but I am not that familiar with it. I should update the touch part...

View Article


File sharing between HP-UX 9 & W2K/XP

My company has several HP Model 715/100 machines running HP-UX 9 , that can't really be upgraded due to compatibility issues with some equipment it's tied to. Each UX box mounts a directory off of a...

View Article

unique random numbers awk

Hi, I have a small piece of awk code (see below) that generates random numbers. Code: gawk -F"," 'BEGIN { srand(); for (i = 1; i <= 30; i++) printf("%s AM329_%04d\n",$0,int(36 * rand())+1) }' OFS=,...

View Article

how awk compare output from 'last -x' with file

Hi awk masters, I need help how to compare output from 'last -x' (command cli from linux) with the file1.txt. if output from last -x is there new entry, then awk write the different in the file2.txt....

View Article


Problem with deleting .dmp file

Hi, everybody! I have a big problem. I don't understand Unix, but I work as a system administrator, and sometimes I make some data exports and I have to delete old .dmp files, but today I had a...

View Article


Replace backslash at the end of the string using sed command

I have text file which is a tab delimited one. Sample data from the file is shown below: Code: unix    is\    great\    os linux\  is    superb I want to replace that backslash with empty string...

View Article

Grep 'error' between two timestamps

Hi, Need to grep for a error in a log file but between two timestamps / patterns example: in the below log file if the given timestamps are 14:00 to 15:00 and m greping for error only error3 should...

View Article

solaris booting problems

hi am trying to get some knowledge on Solaris common trouble shooting problems.. can some one help me in getting most common issues.. and how to solve those issues. thanks in advance

View Article

calling a shell script present on another server using perl script.

Hi, I am working on a sever A. I want to write a perl script to execute a shell script persent on the server B. please help me in this. thanks in advance.

View Article


curl: (52) Empty reply from server

Hi All, I am using curl command to issue a request to server(web.py). Till Now I was not facing any problem. But when the server takes lot of time to respond, Curl exits with "curl: (52) Empty reply...

View Article

shell programming and scripting

hi, i am trying this while loop and i only want that it should only read food as pizza....no other entry should be taken here. Code: #!/usr/bin/perl -w $food = " "; while ( $food ne 'pizza' ) {   print...

View Article


Cat Command on File not printing "Blank" Lines?

Hello All, I have a bash script and in it at some point I call an Expect Script that does some stuff and saves its output in a ".txt" file. Example "/path/to/my/file/Expect_Output.txt" file: notice the...

View Article

Image may be NSFW.
Clik here to view.

How to cache login in ldap clients !!! Please helpppp !!!!

Hey guys i´ve one big problem with nscd.conf this don´t work i tried many examples of configuration the nscd.conf simply don´t work when i stop the ldap server i try access by ssh on the client i can´t...

View Article


[solved]Help with a sed command

So I have a bunch of strings in a file. Example Line ./prcol/trt/conf/conf-app/jobdefinition/trt-pre-extr-trt-step.jdef Intended Result pre-extr-trt-step So far I have parsed it out to the last bit,...

View Article

Single command to Partition and label as LVM whole disk

Hello, someone please suggest me how write a script or command to create partition and label whole disk as LVM . I have multiple servers that I to label as LVM using fdisk, that will very hard process....

View Article

Image may be NSFW.
Clik here to view.

SNMPv3 error - Help please!

Hello everyone: I'm still relatively new to AIX administration and learning every day. I need to configure SNMPv3 in several servers. I tried first on a "test environment" server, no firewalls, and I...

View Article
Browsing all 16232 articles
Browse latest View live