Search Results

Search: Posts Made By: wempy
5,343
Posted By wempy
are you absolutely certain that in the 2nd...
are you absolutely certain that in the 2nd version the spaces before $(MAKE) are a tab character (they need to be, strange things will happen if it is spaces rather than a tab)
2,510
Posted By wempy
have a look at the basename utility. By defualt...
have a look at the basename utility. By defualt it will strip off anything that looks like a path so

for fn in \
/opt/src/default.cfg \
/opt/sys/sec/default.cfg \
/opt/st95psd.cfg \...
6,035
Posted By wempy
why don't you grep for "as StandBy" i.e. ...
why don't you grep for "as StandBy" i.e.

dspmq |grep "as StandBy" && {
echo "kick off your script here within these braces"
}
1,529
Posted By wempy
or to avoid spawning an extra sed process ...
or to avoid spawning an extra sed process


#!/bin/bash
for f in bild*jpg
do
mv $f c${f#bild}
done
3,205
Posted By wempy
on a system with GNU touch and find I use ...
on a system with GNU touch and find I use

touch -d "-5 days" /tmp/5daysago
find /home/dir/ -type f ! -newer /tmp/5daysago -exec rm {} \;
3,205
Posted By wempy
on a system with GNU touch and find I use ...
on a system with GNU touch and find I use

touch -d "-5 days" /tmp/5daysago
find /home/dir/ -type f ! -newer /tmp/5daysago -exec rm {} \;
Forum: Linux 01-17-2011
8,881
Posted By wempy
If you change crontab without notifying cron it...
If you change crontab without notifying cron it will not pick up any changes. you could try SIGHUP or yust restart the cron process.
4,980
Posted By wempy
you could use a macro if your version of vi...
you could use a macro if your version of vi supports them - i've been using vim so long I can no longer remember what the original vi can do.

the macro could be:

$F_d$j

$ - go to end of line...
1,903
Posted By wempy
When you assign the string to the variable...
When you assign the string to the variable $rsync_param it will take the current value of the variable $LOG_FILE, which may or may not be set (you haven't shown any context) so that when rsync comes...
14,084
Posted By wempy
is SAP running in a chroot jail? if so you may...
is SAP running in a chroot jail? if so you may be looking at the wrong /bin/ssh
2,716
Posted By wempy
try #!/bin/bash cd /output for f...
try

#!/bin/bash

cd /output

for f in abc. xyz djj iwe weewe rier 3948903ddfgf; do

# ensure that we pick up a non-blank string
# (not likely to happen, but if it does we will end up doing...
2,855
Posted By wempy
are you asking for a regular expression to match...
are you asking for a regular expression to match ABC12345678? if so

^ABC\d{8,8}$

might do, if the engine using the pattern utilises PCRE.
3,064
Posted By wempy
Is rdesktop connecting to a vnc server on the...
Is rdesktop connecting to a vnc server on the windows machine? if so, is it starting the vnc window full screen, check for a ~/.vncrc file or a ~/.vnc/config file, and see if that is the case. ...
Forum: Linux 11-21-2009
4,307
Posted By wempy
/dev/sdb2 will be (hd0,1) not (hd0,2) - grub...
/dev/sdb2 will be (hd0,1) not (hd0,2) - grub partitions start at zero, so change your menu.lst (or edit the line at boot time - press b at the grub menu screen) to be:

root (hd0,1)
Forum: What is on Your Mind? 04-07-2009
37,999
Posted By wempy
Harking back to a previous post that insisted...
Harking back to a previous post that insisted there are no female SAs I hope I get away with this one from a Think Geek T-shirt:

$> man woman
$> Segmentation fault (core dumped)
Forum: What is on Your Mind? 04-06-2009
37,999
Posted By wempy
This has got to be my all time favourite: xkcd...
This has got to be my all time favourite:
xkcd - A Webcomic - Real Programmers (http://xkcd.com/378/)
makes me giggle every time I read it
4,836
Posted By wempy
a good source of documentation I have found for...
a good source of documentation I have found for this sort of thing is the Advanced Bash-Scripting Guide (http://tldp.org/LDP/abs/html/) especially the reference cards appendix Reference Cards...
21,705
Posted By wempy
All the Database Admins I've worked with always...
All the Database Admins I've worked with always went home at 17:30 (except for Gil, but he was special) so maybe Database administration is more what you want, or straight user support. Otherwise,...
Forum: AIX 04-01-2009
24,305
Posted By wempy
ah, I see what you mean. As I only have a Linux...
ah, I see what you mean. As I only have a Linux machine here, I can't say for "real" ksh but pdksh does not understand \u@\h: \w escapes for the PS1 variable. They appear to only apply to bash.
...
4,107
Posted By wempy
if your version is recent then named -v ...
if your version is recent then

named -v

should tell you (you may need the full path to named if it is not in your path i.e. /usr/local/sbin/named -v)
otherwise look here for some interesting...
21,705
Posted By wempy
And one of the best ways I found to learn was to...
And one of the best ways I found to learn was to get hold of a Unix based machine and repeatedly break it/fix it.

the easiest (and cheapest) way to do that is use Linux. And if you are really...
Forum: AIX 04-01-2009
24,305
Posted By wempy
Are you using csh? ksh and bash both seem to...
Are you using csh? ksh and bash both seem to "see" the changes to PS1 immediately. (i.e. without having to export them). What shell are you using?
5,177
Posted By wempy
depends on your OS. If you are using...
depends on your OS.

If you are using linux, as root create a /var/spool/cron/<OracleUserName> file with the details of the job that you want to run. chown the file to...
3,172
Posted By wempy
please split your long lines! your problem...
please split your long lines!

your problem is that you are sending the text "df -k ." into the tail |cut pipeline, and the return from that is an empty string. If you wanted to assign the output...
8,808
Posted By wempy
well, to delete all mail in an inbox, without...
well, to delete all mail in an inbox, without reading it you can

cat /dev/null >/var/spool/mail/<username>

so a cronjob to do that would look like

13 5 * * * cat /dev/null...
Showing results 1 to 25 of 211

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