Log rotator
Hello guys. i have couple of log files which i need to rotate them . so i need a script to run every 30 minutes in the server and rotate the log files if they size pass the 100MB. would you please help...
View ArticleSolaris 11.2 doesn't assigns searial port to 3g usb modem?
In ubuntu etopic i create this udev rules for prolink 3g usb modem: Code: SUBSYSTEM=="block", SUBSYSTEM=="scsi", ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="f000", ACTION=="add", RUN+="/sbin/modprobe...
View ArticleHow to find the used memory in HP-UX?
Hi all, Can any please provide how to calculate the cpu and memory usage of HP-UX server. Thanks in advance.
View ArticleDrawing 3D cities
For a local history volunteering club I am looking to develop a walk-through version of the town in question through the ages. So I would like to offer the user a century (1500, 1600, ..., 2000) and...
View ArticleCompare data in two files
Gents, Can you help please I have a data base with lot information (file2) and I have some data in (file1) to compare. Then the comparison should be done using the following keys: Example ( values from...
View ArticleNo such file or directory for 3rd party software
I am trying to use the KiFMM3D software with my code. I am compiling code in C++ and everything looks fine but I am getting an "no such file or directory" error regarding the KiFMM3d code. The exact...
View ArticleClpm - Command Line Project Manager
Command Line Project Manager (clpm) is designed to make managing sets of files easier. It's free and open source. Watch the demo. Features Organize files and commands into projects and recall them with...
View ArticleSplit Every Line In Txt Into Separate Txt File, Named Same As The Line
Hi All Is there a way to export every line into new txt file where by the title of each txt output are same as the line [or its content]? I have this txt files containing names: Code: Kandra Vanhooser...
View ArticleNo output from awk command
Hi all, In my SunOS 5.10, the command awk using BEGIN option doesn't print output variables like expected here is my test: with the following code everything is alright ps -eo pcpu,args | grep "httpd"...
View ArticleChanging date time will cause the X11 restart
I am using SCO Unix System V/386 Release 3.2v4.2 in some legacy machine. I find that when I change the date time of the system, it will sometimes restart to the scologin page It seems to be related to...
View Articlesed is not overwriting a file
hi i have a file as in follwoing: Code: cat apple.txt Apple is a fruit But this fruit is costly Now I used the sed command and i see output as in following Code: [root@2 ~]# sed 's/fruit/healthy...
View ArticleProgramming book should every programmer read?
hi, i want some advice on a programming book should every programmer read?
View ArticleGrep through a .tar file without untarring it
Hi All, I need to grep through a .tar file without untarring it. Would you please help me with that ? The extension to this request is to use the cut command to extract the data from a particular...
View ArticleChecking numeric expression in .ksh script
Gurus, Please need your help. I'm saving a filetimestamp into $filetimestamp and say....echo $filetimestamp gives 2015021612 I'm saving a cutoff_time into $cutoff_time say....echo $cutoff_time gives...
View ArticleRPC Error
Hi All, I am receiving RPC-Error 5 and sometimes RPC-Error 2 in my Hp-Ux servers. I have tried to kill and restart again.. Again same errors. Sometimes RPC process going down. Due to this other...
View ArticleRemove '.' from file for numbers ending in '.'
Hi, I have numerous files which have data in the following format Code: A|B|123.|Mr.|45.66|33|zz L|16.|33.45|AC.|45. I want to remove decimal point only if it is last character in a number. O/p should...
View ArticleUNIX command to check if file name ends with .tar OR if the file is a tar file
Hello Team, Would you please help me with a UNIX command that would check if file is a tar file. if we dont have that , can you help me with UNIX command that would check if file ends with .tar Thanks...
View ArticleHow to select all files added to a directory in the past 5 mins (HP-UX)?
Hey everyone, I need to select all files that were added to a specific directory in the past 5 mins and copy them over to a different directory. I am using HP-UX OS which does not have support for...
View ArticleTranspose File
Have various files like this: Code: InSlot=0x00000001 InPort=0x00000000 Inref=0x0000002f InSID=0x00000001 OutSlot=0x00000001 OutPort=0x00000002 Outref=0x00000000 OutSID=0x0000000b OutUName_2=14[asass]...
View ArticleCp not working
Hi guys, I have a small part of the scrip that is not working. Code: mkdir /suf cp suf-3pp-rpms-4.1.0-rhel.tar.gz /suf cp suf-4.1.0.2645-26B.noarch.rpm /suf cd /suf gunzip...
View Article