Why Do You Need the Explicit Pathname to Execute?
Hi! If your working directory contains a file you want to work on, or give as an argument, you don't have to give the explicit pathname, just the filename, like so: Code: $ vi while_loop.ksh But if you...
View ArticleConduct a search or test -f over a path with spaces
I am organizing my music library on a NAS server. I want to print a list of all the directories that are missing the cover art (at least one or more jpeg file). I have successfully created a file with...
View ArticleFtp script
I would like to write a script to ftp to 192.168.1.101 ( I have set .netrc , therefore no passwrod in remote server ) , and then get file "file.txt" , but it fails , can advise what is wrong ? thanks...
View ArticleRemove file elder than 90 days
I have crontab job a tar file to a directory ( tar -cvf /tmp/backup/or.`date +%m%d%y`. /ora/db/* ) , it will do it every day . Now I don't want to keep too much files , I just want to keep the file for...
View ArticleAdding SDK Build on Kernel Source Build
Hi, So I downloaded this kernel source and was able to build it successfully. But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be built by...
View ArticleFind specific files only in current directory...not sub directories AIX
Hi, I have to find specific files only in the current directory...not in the sub directories. But when I use Find command ... it searches all the files in the current directory as well as in the...
View ArticleNon interactive su in bash script
Hi, I have a python gui which allow users entering the root password, then a bash script is called to run "su" with the root password on the background. I could find a way to run "su" with a password....
View Articleawk issue
Hi all, i am trying to use below command to see the output of hardware inventory, but i only see 2 first line no output of the command. Code: awk '/Hardware/ {print $0}' XXX_result.txt Hardware...
View ArticleVariable not an identifier when script is run as another user
I am new to scripting I keep getting the error var2= is not an identifier when I run this script as another user. BUT when I run it as myself, the script completes without error. Any idea why? I assume...
View ArticleConverting columns to matrix
Dear All I would like to convert columns to matrix For example my data looks like this Code: D2 0 D2 0 1.0 D2 0 D2 1 0.308 D2 0 D2 2 0.554 D2 0 D2 3 0.287 D2 0 D2 4 0.633 D2 0 D2 5 0.341 D2 0 D2 6...
View ArticleMerge column headers and transpose
Hello Everyone! I am new on this forum and this is my first post. I wish to apologize for my, not canonical, English. I would like to solve this problem but I have no clue of how do it!I will be...
View ArticleMailx command - send mail as table format
I have to send a couple of rows that have been returned from a SQL query. I have written the output of the query to a file and while i try to print this in the mail body the formatting goes wrong....
View ArticleHow to scrub directory only if on own partition/drive?
Hi all, I've been working on a script to run a disk wipe (using Jim Garlick's scrub tool) on the filesystem in Xerox production printer RIPs. Easy enough if there's just one partition, but I need to...
View ArticlePerl : joining alternate lines
Hi, I need to join every alternate line in a file for eg:input file Code: $ cat abc abc def ghi jkl output Code: abc def ghi jkl code i wrote for this Code: $ cat add_line.pl #!/usr/bin/perl -w my...
View ArticleAdd newline to regex
I have a perl script that runs a program and puts the output of the program into a variable. The output of the file looks like: Code: Statistics 0 AverageTime: [0,0] Statistics 0 AverageTime:...
View ArticleMerge multiple lines to one line when line starts with and ends with
example: Code: comment Now_TB.table column errac is for error messages 1 - first 2 - second 3 -third ; in this example I need to be able to grab the comment as first word and ; as the last word and it...
View ArticleDoes PID change from device to other!!!!
we asked to create a sender and receiver for a signals. sender knows his receiver by it's(receiver) PID .... my question is if i go to other computer and run my program will the pid chages than the...
View ArticleAdding a lines to specific section of the file.
Hello, I have to a add 2 lines to /etc/sudoers file under this section below, can someone please suggest script to add these two lines when execute this remotely on to a multiple servers. Code: before...
View ArticleNot logging ftp connections in /var/adm/wtmpx file (in last command output)
Hi all, I have F5 load balancer on my system and checking service status by opening an ftp session in every 30 seconds. These ftp sessions are being logged in /var/adm/wtmpx and filling up the file....
View Article