I my freebsd 7.0 box, there is no "lockfile" command
$ lockfile
-bash: lockfile: command not found
therefore I can't use the lockfile approach.
So, what is the best way to ensure only one copy of bash script is running?
Hi
I am going to run one heavy program that works about 3 hours from crontab. But I am not sure how exactly to run it - with regular call or like a daemon (with "&" at the and of the line)?
Hi All,
how can I make ifconfig to show me the network traffic from console? Or how can I check the network traffic without installing additional package like wireshark?
Hi,
How a C application can get system information like netstat -p tcp ?
I'm looking for a system call but not for calling the real netstat and parse the stdout.
How to implement void * do_it_fast(void * ), so that I can wait in the main thread for the child to complete for a fixed interval of time (like software watchdog) ?
thanks, but the problem is not in the # nor in the apostrophes. the script is OK (proved by echo $PS1).
The problem is that after the execution of the script, PS1 remains the old one.
Hi list,
Is there a way to set the command prompt $PS1 with shell scrypt? I can't use .profile because we are few users on one account and each user prefers different PS1.
I tried with file.sh:
PS1=`uname -n`:'$PWD'# ; export PS1
but after the execution of file.sh, PS1 remains the same...
Hi all
is there a way (in sh or bash) to redirect each descriptor to different script/program
e.g. pipe stdout | grep pattern1 and stderr | grep pattern2
fstat /data
gives empty line
USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME
but:
fstat -v /data
returns
...
unknown file type 5 for file 13 of pid 1128
can't read vnode at 0x0 for pid 45
can't read vnode at 0x0 for pid 44
...
and do this mean that i have...
Hello,
Q: where are my comports ?
---
according dmesg i've two com ports:
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
but in /dev I can't find sio* at all :
ls /dev/
acd0...
Hi,
the problem is
# umount /data
umount: unmount of /data failed: Device busy
And here is the question: how to find out who keeps this device busy ?
Or is there another way to find what will happen if I use "-f" to unmount the device?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.