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

Solaris 10 x86 server can't boot after disk0 failure

We've got a IBM xseries box running Solaris 10 x86, which was working fine until disk0 failed. A SVM raid1 set was setup (UFS root fs), so we thought it would be able to boot off the mirror....

View Article


Script to delete users in the servers

Hi Team, Hope you are doing good.I am new to scripting.I have a requirement of deleting around 10 users in 100 servers.It is very time consuming by logging into each servers and delete the user.Here I...

View Article


Partial variable substitution in script

I have a script. Code: filecreatenew ()Ā  { Ā  Ā  Ā  Ā  touch /usr/src/$1_newfile.txt Ā  Ā  Ā  Ā  var=$1 Ā  Ā  Ā  Ā  echo $var Ā  Ā  Ā  Ā  touch /usr/src/$var_newfile_with_var.txt } filecreatenew myfile Its creating...

View Article

How to check Which Servers are using a particular certificate in Websphere?

Hi Team, I understand that this query does not involve Unix exactly, but can anyone give me pointers as to know which Servers host a particular certificate i.e xyz.intra.com . The Development team has...

View Article

Ping script to list of servers

Hi Friends, I have experience in redhat/ Ubuntu OS, but I am very new to solaries os. my servers OS is Oracle Solaris 10 8/11 s10x_u10wos_17b X86. I have a file contains 200 servers IPs one by one. now...

View Article


Tail -f exit

Hi I was wondering if somebody can help me with this query What I need to be able to do is exit out of a tail -f command through a script. I can exit using CTRL+C but only for a command line users,...

View Article

Nested sed commands

Hi, I get the following response by gphoto2 and I would like to substract the index number of the current item. In this case 3. Code: gphoto2 --get-config /main/imgsettings/iso Label: ISO Speed Type:...

View Article

Help how to make awk array

Hi expert, I'm newbie in awk programming and now I have difficulty how to make awk array in ash shell. I have code below. As you know ash shell doesn't support array and I cannot install bash in my...

View Article


Using sed or awk

I have a .txt file with almost few hundreds interfaces address which need to be changed or mapped to the new interface naming convention. for e.g interface xe-8/0/0 should be xe-16/0/0 xe-9/0/0 should...

View Article


Math count %memory using awk

Hi expert, i have log this: Code: Memory: 74410384 Memory: 75831176 Memory: 77961232 Memory: 77074656 Memory: 76086160 Memory: 77128592 Memory: 78045384 Memory: 76696040 Memory: 72401176 Memory:...

View Article

Image may be NSFW.
Clik here to view.

Mail Automation in UNIX

Hi Sir, I need unix code which will read data present in .xls file and should send an automated mails .when i place the .XLS file in a specific folder and run ***.sh from unix box Attached Excel file...

View Article

Help with shell script for .Txt to .csv conversion with data processing

Hi experts, I want to convert a txt file having rows and columns (CNAI_DUMP_raw.txt) by comparing it with another text file (paramaters.txt) and generate a output in CSV which contains only 3rd column...

View Article

How to know if PGP has been installed on the Linux server?

Hi Guys I am working on a project where is looking after the infrastructure and they have delivered RHEL servers. I need to confirm if PGP has been installed on the newly delivered linux servers. Is...

View Article


Image may be NSFW.
Clik here to view.

Help Me! with shell script for .Txt to .csv conversion with data processing

Hi experts, I want to convert a txt file having rows and columns (CNAI_DUMP_raw.txt) by comparing it with another text file (paramaters.txt) and generate a output in CSV which contains only 3rd column...

View Article

Sendmail problems

I running sendmail as user smmsp I have create user,group with same name Sendmail start ok,but when i try to send email outside of localhost give me this error Code: JanĀ  3 20:46:59 hpux2...

View Article


Size of memory used by a program

Hello, Here is a portion of my code: Code: a=(int *) malloc(dim*dim*sizeof(int)); b=(int *) malloc(dim*dim*sizeof(int)); c=(int *) malloc(dim*dim*sizeof(int)); for(i=0;i<dim;i++)...

View Article

Rx3600

Hi, I seek google to power off this machine. This machine using HP-UX 11.23. Anyone knows how to power off properly include ac power? I need to replace scsi card. Please assist. Thanks.

View Article


XML text bounded with tag

Could you please give your inputs on the below issue: source.xml Code: <?xml version="1.0" encoding="UTF-16"?> <P1 > <C1 type="i"><2></C1> <V1...

View Article

Getting a better spell checker

Guys I am new to Linux in general and want to know what is the use of the following files-: /usr/share/dict/words /usr/share/dict/words.pre-dictionaries-common Are they used by the spell checker to...

View Article

Increase maxuproc value

Hi Guys, I am running RHEL6 and now my processes reach maximum limit. How do I increase the maxuproc value? Can I increase the value without rebooting the server? Thanks in advance... Please Help!!!

View Article
Browsing all 16232 articles
Browse latest View live