Search Results

Showing results 1 to 40 of 61
Search took 0.01 seconds.
Search: Posts Made By: Gromit
Forum: Shell Scripting May 18th, 2009
Replies: 3
Views: 765
Posted By Gromit
Or do you mean the full path to the bash binary?

$ which bash
/bin/bash
Forum: *nix Software May 18th, 2009
Replies: 10
Views: 1,804
Posted By Gromit
That's cool,

I think the main problem that you're having is that the ports required to connect to samba are filtered. Whether it's at your ISP, your router, or the machine itself. Perhaps you've...
Forum: *nix Software May 14th, 2009
Replies: 10
Views: 2,336
Posted By Gromit
Hi Darkflib!

I can't speak for the OP, but one of the advantages of running Linux from a usb stick (pen drive, thumb drive, I never know what to call those things...) is that you can configure it...
Forum: *nix Software May 11th, 2009
Replies: 10
Views: 1,804
Posted By Gromit
Hi!

It's most likely filtered by your ISP. They generally do this to help prevent old, unpatched Windows machines that are directly connected to the internet from being cracked. In general, this...
Forum: Shell Scripting May 5th, 2009
Replies: 2
Views: 868
Posted By Gromit
Hi!

That sounds interesting, but I think we're a little unclear about the details. You mention...

"create a menu which will add users doing this in Bash"

...and...

"then adding a list of...
Forum: Shell Scripting May 5th, 2009
Replies: 3
Views: 443
Posted By Gromit
Hmm... Is that the whole script? I'm not seeing the "users" function called anywhere, or even a terminating "}" for the function :)

-G
Forum: Shell Scripting May 5th, 2009
Replies: 2
Views: 594
Posted By Gromit
That's really odd... It works OK on my system:


$ sed -f DBACheck.sql.sed DBACheck.sql
select granted_role from sys.dba_role_privs where grantee='SYSTEM';



What version of sed are you...
Forum: *nix Software May 5th, 2009
Replies: 3
Views: 3,043
Posted By Gromit
Hi!

I hope you've already found an answer to this, but if not, this thread might help:

http://www.linuxquestions.org/questions/linux-networking-3/dns-rndc-service-errror-229950/
Forum: Getting Started and Choosing a Distro Apr 17th, 2009
Replies: 7
Views: 1,178
Posted By Gromit
Debian is the ORIGINAL "picnic in the park"!!! Apt is the greatest invention ever!

Okay, but seriously. If you want to stick with Debian, which I support completely, look into ndiswrapper. ...
Forum: *nix Software Apr 17th, 2009
Replies: 10
Views: 2,336
Posted By Gromit
Check out tinycore! (http://www.tinycorelinux.com/)
Or P.U.D. Linux! It's based on Ubuntu.
SLAX also runs great from a pen drive!

For the record, I've run the standard xubuntu on a 2GB stick...
Forum: Shell Scripting Dec 30th, 2008
Replies: 3
Views: 997
Posted By Gromit
Here's a link that might get you started:

http://www.orafaq.com/wiki/SQL*Plus_FAQ#What_is_SQL.2APlus_and_where_does_it_come_from.3F

Experiment with care!
Forum: Shell Scripting Dec 30th, 2008
Replies: 3
Views: 997
Posted By Gromit
Sure! I don't have any examples in front of me, but the Oracle command line client is sqlplus. There are others, but I think sqlplus is the one that ships with Oracle. You should be able to script...
Forum: Shell Scripting Nov 20th, 2008
Replies: 3
Views: 1,206
Posted By Gromit
Check out "read"! It will take the user input and do whatever you want with it.


read -p "what is your name? " name
echo "Nice to meet you $name"


Hope that helps!
-G
Forum: Shell Scripting Nov 13th, 2008
Replies: 1
Views: 771
Posted By Gromit
Looks like you need to enclose your $line|sed in both cases! Try this:


for line in $(ls *.new); do
file1="${line}"
file2="$(echo ${line} | sed 's/\(.*\)..../\1/')"
diff ${file1}...
Forum: IT Professionals' Lounge Nov 12th, 2008
Replies: 9
Views: 1,272
Posted By Gromit
Heh, for some reason the topic reply notification from this thread reminded me of this, so I had to share:

http://www.gnu.org/fun/jokes/ed.msg.html

-G
Forum: Shell Scripting Nov 7th, 2008
Replies: 3
Views: 613
Posted By Gromit
Do you use the temporary file for anything in the meantime? I'm biased against temporary files when they can be avoided, personally... Why not stuff it all into a variable and then stuff it into a...
Forum: IT Professionals' Lounge Nov 7th, 2008
Replies: 9
Views: 1,272
Posted By Gromit
vim all the way! If it's configured with syntax hilighting and search hilighting, and you can get used to the commands, it's the best ever for command line html/php/any scripting language you can...
Forum: Shell Scripting Nov 7th, 2008
Replies: 3
Views: 1,035
Posted By Gromit
Okay, I needed something to get my mind off work for a few minutes, so here's a quick script I wrote using both of the suggestions above from chris5126 and omrsafetyo. I didn't translate the date, I...
Forum: Shell Scripting Nov 5th, 2008
Replies: 1
Views: 838
Posted By Gromit
Wow, that's a lot of pipes! I would do it something like this:


awk '{TotCPU += $1}{TotMem += $2}END{print "Total CPU= " TotCPU "\nTotal Mem= "TotMem}' test.list


Kinda ugly all in one...
Forum: Shell Scripting Nov 5th, 2008
Replies: 2
Views: 1,150
Posted By Gromit
Hi!

The problem is that you're not providing a database name! Try this:


mysql -uusername -ppassword database_name ...



Hope that helps!
Forum: Shell Scripting Nov 4th, 2008
Replies: 4
Views: 633
Posted By Gromit
I keep a copy of this document posted at every workstation in my office ;)

http://www.digilife.be/quickreferences/QRC/vi%20Quick%20Reference.pdf

Enjoy!
-G
Forum: Shell Scripting Nov 4th, 2008
Replies: 4
Views: 633
Posted By Gromit
It's just a text file right? What flavor of Unix are you using? You'll probably want to use "vi" or "emacs". If you're not familiar with either of those, you'll probably want to google for some...
Forum: Getting Started and Choosing a Distro Nov 2nd, 2008
Replies: 21
Views: 7,669
Posted By Gromit
jbennet, you are a cool dude. I wish you'd come help me convince the IT people I work with... If it ain't broke, don't fix it!

My IT department has a habit of "sniper upgrading" production...
Forum: *nix Software Nov 2nd, 2008
Replies: 4
Views: 1,410
Posted By Gromit
One thing to remember about 'sudo su' is that it's not a 'login shell' by default. If you use 'sudo su -l' ('sudo su -' for short) then you'll inherit all of the root user's environment variables,...
Forum: *nix Software Nov 2nd, 2008
Replies: 3
Views: 2,853
Posted By Gromit
Here's a silly question... Have you tried forcing your NIC on the Windows box to run in 'full duplex' mode?

The speed problem is only when going up from the Windows box to the Linux box right? ...
Forum: Getting Started and Choosing a Distro Oct 15th, 2008
Replies: 1
Views: 1,252
Posted By Gromit
Try using the built in exec command! Also, not sure if that's exactly what you're typing, but you'll need to give "find" a few more arguments...

find . -iname *.dat -prune -exec ls -ltr {}\;

...
Forum: *nix Software Oct 13th, 2008
Replies: 1
Views: 1,040
Posted By Gromit
Hi Shwick!

I'm not exactly sure what you're trying to do with the usermod command there. If it's giving you the usage, then you've likely got a syntax error somewhere. What's the end result...
Forum: Shell Scripting Oct 12th, 2008
Replies: 2
Views: 1,766
Posted By Gromit
Heya Robert72! Did you find what you were looking for, or did you need more specific examples?

-G
Forum: Shell Scripting Oct 8th, 2008
Replies: 2
Views: 1,766
Posted By Gromit
I think you're looking for read -p

I have some examples, but running to a meeting... If you still need help, I'll post it later!

-G
Forum: Getting Started and Choosing a Distro Oct 8th, 2008
Replies: 13
Views: 5,329
Posted By Gromit
My advice? Try them ALL! At least the mainstream ones. Most everything else is based on one of the mainstream distros. It's all a matter of preference. I started out with RedHat and rpm...
Forum: Shell Scripting Oct 8th, 2008
Replies: 5
Views: 1,174
Posted By Gromit
Doesn't tripwire write a to a report file by default? Maybe you could get the results you're looking for by running tripwire and then parsing the report?

Otherwise, I think you're just missing...
Forum: Getting Started and Choosing a Distro Oct 1st, 2008
Replies: 4
Views: 2,444
Posted By Gromit
Does that happen after you log in, or during boot up?
Forum: Getting Started and Choosing a Distro Oct 1st, 2008
Replies: 29
Views: 4,163
Posted By Gromit
It's all about what you're comfortable with!

Linux can be point-and-click, or you can do it all at command line. I'll also say that if you're running Linux as a web server (with...
Forum: Getting Started and Choosing a Distro Oct 1st, 2008
Replies: 21
Views: 7,669
Posted By Gromit
BillBrown hit it on the head. It's really all about preference. I started out working with RedHat servers, and then experimented with every different distribution I could get my hands on until I...
Forum: Shell Scripting Oct 1st, 2008
Replies: 5
Views: 2,026
Posted By Gromit
This may be late, but I wanted to get the "column" command into the fight!


$ column -t -s " " test.txt
aba bba baba
abba baba baaa
addd ffff fffff


Hope this helps!
Forum: Shell Scripting Sep 30th, 2008
Replies: 3
Views: 881
Posted By Gromit
Hi Ajay!

I'm not that familiar with Java, so are the System.out messages what gets printed on the command line?

If' so, you'll want to run your java app like this:

./java-app >> log.txt

...
Forum: Shell Scripting Sep 30th, 2008
Replies: 4
Views: 858
Posted By Gromit
Okay, I think I'm confused now. It sounds like you just need to run that file as a shell script.

# sh ./file


Unless there's a reason to run it line-by-line... If you can't run it in place...
Forum: Shell Scripting Sep 29th, 2008
Replies: 4
Views: 858
Posted By Gromit
Hi Jaoqua!

How have you tried so far? Depending on how the file is formatted (are there spaces in some of the commands you want to run?) it should be as simple as:


for i in $(cat...
Forum: Shell Scripting Sep 23rd, 2008
Replies: 8
Views: 2,468
Posted By Gromit
Hi Manik, you might want to start a new thread, since this was was solved back in March :)

If this isn't what you're looking for, please start a new thread with more details. From what you've...
Forum: Shell Scripting Sep 22nd, 2008
Replies: 10
Views: 2,481
Posted By Gromit
This is a really interesting project. I'd like to take a deeper look into it when I have some time :)

Although I love bash a lot, Perl has a lot of built in functions to handle the conversions...
Showing results 1 to 40 of 61

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC