Forum: Shell Scripting May 18th, 2009 |
| Replies: 3 Views: 792 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,853 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,355 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,853 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: 905 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: 454 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: 615 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,239 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,207 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,355 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: 1,187 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: 1,187 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,229 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: 797 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,285 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: 627 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,285 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,049 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: 864 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,169 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: 642 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: 642 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,821 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,452 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,902 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,272 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,055 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,803 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,803 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,466 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,201 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,456 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,196 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,821 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,081 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: 886 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: 866 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: 866 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,495 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,519 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... |