Search Results

Search: Posts Made By: shitson
1,609
Posted By shitson
Nice work guys ...
Nice work guys

http://img29.imageshack.us/img29/65/memearcoiris.jpg
1,609
Posted By shitson
This is a very basic start, i'm sure something...
This is a very basic start, i'm sure something much more elegant could be done with awk :D

#!/bin/bash

FILE="/tmp/file.txt"
COUNT=1

for i in `cat ${FILE}`
do
if [ "$((${COUNT}%2))" -eq 1...
4,265
Posted By shitson
can you please post up your data source? ...
can you please post up your data source?

with your test data

CHRM1 P11229 Pirenzepine DAP000492 Peptic ulcer disease Approved T2D
CHRM1 P11229 Glycopyrrolate DAP001116 Anesthetic Approved T2D...
4,265
Posted By shitson
the code below should work :) cat...
the code below should work :)

cat sarattdnewdruggene.txt | uniq > sarattdnewdruggene4.txt
4,265
Posted By shitson
Hi, did this work for you?
Hi, did this work for you?
1,088
Posted By shitson
you need to dereference var with $var and also ...
you need to dereference var with $var and also

if [ var -ne 0 ] then should be if [ var -ne 0 ]; then
4,265
Posted By shitson
Yep, working on it now. I think i've found the...
Yep, working on it now. I think i've found the problem, it seems you have some duplicate lines :D will post up some code soon.

---------- Post updated at 10:26 PM ---------- Previous update was at...
4,265
Posted By shitson
Yep as i thought, it's tab delimited :)
Yep as i thought, it's tab delimited :)
4,265
Posted By shitson
Hmm i think the problem here is the sample data...
Hmm i think the problem here is the sample data we are using to build our code is not formatted the same as the raw data you are parsing. Can you please upload your data sets?
5,531
Posted By shitson
Need more details, could you please describe the...
Need more details, could you please describe the steps you take?
4,265
Posted By shitson
#!/usr/bin/python import sys if...
#!/usr/bin/python

import sys

if len(sys.argv) < 2:
print "usage:",sys.argv[0],"<file_path>"
sys.exit(69)

f = open(sys.argv[1], 'r')
lines = f.readlines()

count = 0...
Forum: What is on Your Mind? 07-25-2012
3,668
Posted By shitson
Corny Network Engineer Jokes – Updated...
Corny Network Engineer Jokes – Updated 20101121-1459 ? EtherealMind (http://etherealmind.com/corny-network-engineer-jokes/)

Enjoy
4,265
Posted By shitson
Wow, i really didn't know awk was that...
Wow, i really didn't know awk was that powerful/flexible :eek:
1,918
Posted By shitson
I would disable users who are not in wheel from...
I would disable users who are not in wheel from using su and this would atleast force a user to sudo with their username.

Depending on your distro you need to look into something along the lines...
44,986
Posted By shitson
What does this return; nc hostname 22
What does this return;

nc hostname 22
12,232
Posted By shitson
The only problem i see with using find is that it...
The only problem i see with using find is that it relies on the fact that the files have correct modification time.

@dsfreddie - will the files always have correct metadata? Modified time etc?
44,986
Posted By shitson
Have you tried restarting the sshd Daemon? ...
Have you tried restarting the sshd Daemon?

Thanks.
12,232
Posted By shitson
#!/bin/bash DAYSBACK=7 WORKINGDIR="/tmp" ...
#!/bin/bash

DAYSBACK=7
WORKINGDIR="/tmp"
TARGETDIR="/tmp/mvd"
ACTION="cp" # change this to mv

for day in `seq 1 ${DAYSBACK}`
do
${ACTION} ${WORKINGDIR}/`date -d "${day} days...
36,886
Posted By shitson
As a basic primer read the following here...
As a basic primer read the following here (http://www.lesbell.com.au/Home.nsf/b8ec57204f60dfcb4a2568c60014ed0f/04eaff076bce249dca256fb6007f53e5?OpenDocument) goto the section Creating an RSA key for...
3,233
Posted By shitson
I've been thinking that - It's more for learning...
I've been thinking that - It's more for learning that really using in a Production environment. I really like the Sound of freeBSD so i think it will go LFS > *BSD

Anymore thoughts?
3,233
Posted By shitson
Really understanding Linux/Unix-Derivatives
Hi

I've been using Linux (Ubuntu) specifically for about 5 years now and been dabbling with nix for a couple more. I really am worried that with the way distro's are going and package management...
Forum: Infrastructure Monitoring 09-08-2010
3,688
Posted By shitson
Cacti and Zenoss are good software packages, But...
Cacti and Zenoss are good software packages, But as said before looking into how SNMP works and looking at MIBs would be a good start. :b:
Forum: Solaris 09-02-2010
20,756
Posted By shitson
Is there a MOTD that appears when you login? ...
Is there a MOTD that appears when you login?

try doing a ssh -v or ssh -vv or ssh -vvv to view the 3 levels of debugging to determine where the system is getting stuck at.

Also what specs is...
Forum: Solaris 09-02-2010
20,756
Posted By shitson
What is the host OS?
What is the host OS?
Forum: BSD 09-02-2010
5,898
Posted By shitson
The following is a good list of books to look...
The following is a good list of books to look into when using BSD > http://www.officecafe.com/blog/wp-content/uploads/2008/09/freebsd_books.jpg

# Hope this helps
Showing results 1 to 25 of 25

 
All times are GMT -4. The time now is 07:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy