Search Results

Search: Posts Made By: tphyahoo
5,379
Posted By tphyahoo
man modules.conf doesn't work on my system...
man modules.conf doesn't work on my system unfortunately.

But that's okay. the earlier suggestion about what to read was very helpful. I'm working my way through that, and believe the solution...
5,379
Posted By tphyahoo
how can I run something as root (modprobe, to be exact) every time computer starts.
I have the root password for my box, but I'm ignorant.

So, every time I start my computer, I have to run this command

/sbin/modprobe fuse

as su, so that I can do other stuff (like mount...
8,623
Posted By tphyahoo
Why can't I delete this file?
I want to delete the file "b" as hartmantest user.

It has write permission for the "users" group, and this user is a member of that group. So, why can't I delete this file?


$ ls -l
total 0...
Forum: Linux 07-14-2006
4,200
Posted By tphyahoo
oh this is ugly. I figured out why though. $...
oh this is ugly. I figured out why though.

$ echo DBI DBH | grep -i DB[IH]
$ env | grep LANG
LANG=de_DE.UTF-8
$ LANG=de_DE.ISO-8859-1
$ echo DBI DBH | grep -i DB[IH]
DBI DBH
Forum: Linux 07-14-2006
4,200
Posted By tphyahoo
is grep -i broken?
Is grep -i (case insensitive) broken? If not, can someone explain to me why the third grep fails with no output?

$ echo DBI DBH | grep DB[IH]
DBI DBH

$ echo dbi dbh | grep -i 'DB[IH]'
dbi dbh...
2,279
Posted By tphyahoo
No, I had it running every minute.
No, I had it running every minute.
2,279
Posted By tphyahoo
no, I had it running every minute.
no, I had it running every minute.
2,279
Posted By tphyahoo
cron is torturing me. (not updating)
Suse 10.1. Cron is running, as confirmed by pgrep cron.

For a user, I do crontab -e, specify a time 2 or so minutes in the future (with time measured with the `date` command).

Crontab -l gives...
14,484
Posted By tphyahoo
Can I make "touch" create executable files by manipulating umask?
I'm getting to grips with this concept of the umask.

What I thought was, setting umask uga+rwx would result in creating files with all permissions for everyone. Seems not to be the case though....
93,317
Posted By tphyahoo
Can I spread commands over multiple lines?
Below an example of what I mean. The first attempt does what I want; the second doesn't, because bash assumes a line break means the end of an individual "command unix". Is there some way that I can...
1,583
Posted By tphyahoo
Can I export vars without polluting my namespace?
When I've got a long or hard to type file name, the following is something I like to do for convenience.

$export a=someReallyLongFileName; touch $a; chown hartmann $a
$ls
. .. ...
1,900
Posted By tphyahoo
can I do something like "alias" within a script?
Within a script, I want to switch perl executable. I can do this within .bashrc with the alias feature, but the following didn't work when I tried it within a bash script.


alias...
1,787
Posted By tphyahoo
*.pm globs without quoting, *.pl doesn't.
Can someone explain the following? I can use find on *.pm without quotes, but find on *.pl makes on error, I need quotes for the second version. What's up with that?


$find -name *.pm...
1,635
Posted By tphyahoo
Is there a way to make this find job run as one process, more efficiently?
Hi, unixers, I'm doing something like

find -type f -name '*.gif' | xargs rm &
find -type f -user root | xargs chown idealo &
wait
#do more stuff

on a very large dir. I'm thinking this would...
36,387
Posted By tphyahoo
I hadn't really thought about portability...
Thanks for pointing that out.

I hadn't really thought about portability, but I am going to try be more "portably" correct.

In terms of portability, I am assuming that the posix definition...
7,611
Posted By tphyahoo
batch delete using find, files with # character
UPDATE: Sorry, disregard this.

It did work, I made a mistake; I just shouldn't have been using maxdepth.

I do think it is good to know, however, that

find | grep '#' | xargs rm

will...
36,387
Posted By tphyahoo
maxdepth 0 has maximum of one line of output
maxdepth 0 has maximum of one line of output -- TITS. (Try It To See)

maxdepth -1 outputs the contents of one directories, without recursing into subdirs.

At least, seems that way to me ;)
...
36,387
Posted By tphyahoo
find -maxdepth 1
Maybe I'm misunderstanding, but seems to me if all you want to do is prevent recursing into subdirectories you could also do this with

find -maxdepth 1
2,931
Posted By tphyahoo
I'm getting killed and I don't know why.
UPDATE: I think I may have a culprit. I had KDE console history to unlimited, and since there's a lot of output... I'm thinking that may be it. I'd still like to hear advice on how to figure out why...
2,049
Posted By tphyahoo
Waiting on a group
In the below artificially simplified script, I want to wait till after a, b, and c have been printed, before printing "finished."

If you just want to wait on a single background process, you can...
9,060
Posted By tphyahoo
How do I check if find had no output
Below script complains about remove, because the find that pipes into it has no results. It's okay operationally, but a bad error message.

I would like to first check whether find had any output,...
4,399
Posted By tphyahoo
Thanks klashxx. I had to replace "ksh" with bash...
Thanks klashxx. I had to replace "ksh" with bash and it worked for me.

It's pretty hard for me to understand, but I will study it and work on my bash fu :)
4,399
Posted By tphyahoo
how to use pipes + redirection to create two files?
# this works
# creates two.txt
(echo one;echo two;echo three;) | (
( grep two > two.txt )
)

# wamt this to create two files:
# two.txt containing "two" and three.txt containing "three"
#...
8,372
Posted By tphyahoo
ssh, cd to a dir, and and then do some work.
I want to do something like

#!/bin/bash
ssh name@computer 'cd /my/dir'

and then continue working in this directory.

Right now if I execute a script "myscript" containing the above, it just...
Showing results 1 to 24 of 24

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