Pulling information from a data file by date
Code: awk -v now="$(date +%s)" -v tDiff="${AMINUTES}" ' BEGIN { FS="=" if (!now) now=systime() if (!tDiff) tDiff=60*60 p=1 } /{/ {rec=$0;p=1;next} /}/ && rec...
View Article0: Failure: (138) Device does not have a disk-config
Hi guys, Any idea why I am getting the below error ? Code: [root@alpha ~]# drbdsetup disk-options 0 --resync-rate=500M 0: Failure: (138) Device does not have a disk-config Some info is; Code:...
View ArticleAge of file
Hi All.. Is there any easy way to find out how many days older is file? for ex. fileA 20 days fileB 10 days I am currently on AIX, and there is no STAT command available in this environment. What are...
View Articlescp without password for destination server
I am using the below command to scp the file to destination server ( $server ). The ssh keys have been created between the source and destination servers. Still I am getting password authentication...
View ArticlePerl CGI: No such file and directory: Yet file exists?
This technically a homework problem but I just need help solving this strange issue. The code is kinda long, I tried posted only the relevant parts. 1. The problem statement, all variables and...
View ArticleSamba Server not accessible after establishing iptables rules
Hi All, If I disable the iptables on the server then I can use the command Code: mount -t cifs //192.168.122.21/sharedata tmpdata -o username=smbuser4,password=1234 If I enable the iptables. However I...
View ArticleProblem with binary file
I have a binary file with all content is text, i want convert this binary to a regular file because i want to parse it. Thx. ---------- Post updated at 05:01 AM ---------- Previous update was at 04:34...
View ArticleJava Wunderground
I am not sure if anyone here has experience in this, but I am working with web services and Json. I am trying to obtain my current geographic information (city and state) by using the Weather...
View ArticleHelp in display unsuccessful login in SUSE Linux
hi i want to enable details of previous successful/ unsuccessful login on screen after successful login in SUSE linux ---------- Post updated 01-17-15 at 10:00 PM ---------- Previous update was...
View ArticleHow to read extended ASCII characters from stdin?
Hi, I want to read extended ASCII characters from keyboard using c language on unix/linux. How to read extended characters from keyboard or by copy-paste in terminal irrespective of locale set in the...
View ArticleUsing gdb to detect segmentation fault in sh?
I am using scientific linux. In the directory user/project/Build , after I ran 'make' to compile and link all the cpp files,I had no problems. But then, when I went to directory Code: user/run/run.sh ,...
View ArticleEnhancing the very limited Command Line.
Sometime ago, somewhere on here, I said I was going to do some coding for Android. I installed the full dev kit and a few months ago this MBP developed a failed HDD consequently destroying the dev...
View ArticleCentos server, had to replace the motherboard now the embedded NICs don't work
Basically what the title says. Had to replace the motherboard on an HP DL380 G6 today, of course now the embedded NICs don't work because the ifcfg-eth files have the MAC addresses for the embedded...
View ArticleNeed Help in adding sequence number to a file
Hi All , I have a file which contains data(comma separated) in below format : Code: 500,Sourav ,kolkata ,8745775020,700091 505,ram,delhi ,9875645874,600032 510 ,madhu ,mumbai ,5698756430 ,500042 515...
View ArticlePhp assign selection to a variable
can someone help me assign the selection of a drop down menu to a variable? the variable i need to store the selection in is scanoption. Code: <form name="scanoption"> <p align="center">...
View ArticleUnderstanding Assembly Code
As the title suggests, I want to better understand the following assembly code: Code: section .text global main ; must be declared for linker (gcc) main: ; tell...
View ArticleBash script for making complexes of ligands and receptor
I am working with autodock vina for virtual screening and docking with cygwin. Autodock vina generates conformers for multiple ligands. I want to make the complex of these conformers with receptor....
View ArticleBooting problem
Dears, I have a problem when i reboot the machine last time "AIX 5.3", that after rebooting it not login to graphical desktop, it just stop at console login command line. Kindly find the attached...
View ArticleTimeout ssh when server is not responding
Hi, I have a list of server server1 server2. I am trying to find their uptime. So, I am using for loop, with condition - It check weather server is responding to ping - if yes it ssh and check uptime -...
View ArticleGrep on a list
Hi, If I have a list called list.txt and on each line theres a string of the form something*blah, how do I remove everything after the * for each item? Thanks!
View Article