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

Using Perl to explore recursively remote windows path from AIX

Hi all, I am using Perl 5.8.8 on an Aix 6.1.0.0 to script a program which will retrieve files recursively on a remote Windows 2003 server and copy some of them on my Aix server. MobaSSH is installed on...

View Article


How to check password expiration date of particular user?

Hi Guys, I am new to HP-UX and want to find expiration date of particular user please also note i don't have root access on that server. for e.g. i have user abc on my HP box and want to know when its...

View Article


[HP UNIX B.10.20] NFS Client SubSystem fail

Recently moved a HP Unix B.10.20 system from US to Thailand, and everything is work well in US but after we changed: 1. set_parms ip_address (change the IP to TH range) 2. set_parms addl_netwrk (change...

View Article

Non-fatal POSTIN scriptlet failure

Hi all, I am installing a few rpms on a new Redhat 6.4 box and while it downloads from the local repository, I get the following Errors: Code:   Installing : ss7-capv2-responder-ece-rda-1.2.7-1.noarch...

View Article

Writing xml from excel sheet .xls using perl script

Hi all. I am working on the below requirement of generating .xml file from .xls file which i have , can someone please help me or in writing the perl script for the same: The xls file format is as...

View Article


Multiple bash variables passed into nawk

I have a file that has 2 fields called b_file: Code: 11977 DAR.V3.20150209.1.CSV 3295 DAR.V3.20150209.1.CSV 1721 DAR.V2.20150210.1.CSV I need to search a sftplog using the field 1, but want to maintain...

View Article

Using parted command to create LVM partitions

Oracle Linux 6.6 To create Physical Volumes for Volume groups (LVM) , the disk need to be partitioned to LVM type ie. 'Linux LVM' type . In fdisk , this can done by choosing 8e when prompted for...

View Article

Bash : While Loop behavior

Good Morning I think there may be something I dont understand fully. The following code works well, but I dont like the set domen method. Code: #!/bin/bash # domen="y" while [ "$domen" == "y" ] do echo...

View Article


[awk] Math & Bold-Font?

Heya There is a script which has presets stored in a tab-seperated file. That script also has $help_text , which will be shown when called with invalid arguments or -h . So i do need to have that file...

View Article


Entire server unresponsive

Hi guys, I have a SUN M5000 server running several solaris zones (whole root). In all the zones, I have SAP systems running. Recently, one of the SAP systems got stuck (hanged), I suppose was a memory...

View Article

UNIX cmd -find empty files in folder else sleep for 8hrs

Hello, I am trying to write a unix cmd , that if files in folder /path/FTP are all zero kb or empty then good to go, if not empty then sleep for 8 hrs. Following cmd list me the files which are not...

View Article

awk Parse And Create Multiple Files Based on Field Value

Hello: I am working parsing a large input file which will be broken down into multiples based on the second field in the file, in this case: STORE. The idea is to create each file with the...

View Article

Perl mail script

Need assistance in programming perl script . Below script works but Needs slight modification . This script actually sends attachment as well the image in message. Runs locally but If I run in a...

View Article


Image may be NSFW.
Clik here to view.

Help with Creating file based on conditions

Can anyone please assist? I have a .txt file(File1.txt) and a property file(propertyfile.txt) . I have to read the vales from the property file and .txt file and create the output file(outputfile.txt)...

View Article

Question on the use of while [-z]

Hi, I am new in unix. I found one while command as while [ ! -z "$SRC_FILE" ] . It would be really help if you could let me know what is the use of "-z" and what is difference between "-n" and "-z"....

View Article


Print the line

I need to print the below word in new line using the delimiter in shell script. INPUT Code:   sring=aru :muth:ram:pak OUTPUT Code: aru muth ram pak

View Article

Replacing Double Quote in Double Quote incsv file

Hi All , We have source data file as csv file and since data could contain commas ,each attribute is quoted into double quotes.However problem is that some of the attributa data also contain double...

View Article


Difference between lsconf & prtconf cmds on AIX

Friends, Could someone answer me on a silly question of mine: What's the difference between lsconf & prtconf commands of AIX? I find the o/p's of either of these commands to be same. Excuse me if...

View Article

Help to replace the string with special characters

Code:         Code:...

View Article

Reading file line by line in cshell

I want to read a file in cshell line by line. But it is reading the values by spaces.... For Ex, my file1 : Code: word1 word2 word3 word5 word6 By below script, variable taking the values separated by...

View Article
Browsing all 16232 articles
Browse latest View live


Latest Images