powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Unix-системы [игнор отключен] [закрыт для гостей] / redirect standard output of fuser command.
1 сообщений из 1, страница 1 из 1
redirect standard output of fuser command.
    #35423075
Bardis
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Please help.
I need to check whether exist processes using files in certain directory. Normaly you can do it with fuser <dir>/*. I need to check this in if clause in a shall script. I need a construct looks like:

if [ (fuser /var/opt/dir/*) ]

but th output of fuser is never empty even than no processes using files:
...
Рейтинг: 0 / 0
1 сообщений из 1, страница 1 из 1
Форумы / Unix-системы [игнор отключен] [закрыт для гостей] / redirect standard output of fuser command.
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]