Opened 13 years ago

Closed 13 years ago

#101 closed defect (fixed)

problem with ps options

Reported by: mnalis-ml@… Owned by: Bruno Cornec
Priority: normal Milestone: 2.2.1
Component: mondo Version: 2.2.0
Severity: normal Keywords:
Cc:

Description

in mondoarchive.log (MA.log.gz) there are several time repeated log like this:

running: kill ps auxww | grep " ntfsclone " | awk '{print $1;}' | grep -vx "\?" > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thing.err


kill: 1: Illegal number: root


I think it wanted to kill PID ($2), and not USER ($1). "ps auxww" on my Debian Sarge produces lines like: mnalis 3010 0.0 0.6 3268 1608 pts/1 Ss Nov10 0:00 /bin/zsh

So culprit would be in awk '{print $1;}' which should be '{print $2;}' instead.

Change History (2)

comment:1 Changed 13 years ago by Bruno Cornec

Status: newassigned

In fact the function in which this is present is called both from mondoarchive and mondorestore. And as busybox as a different ourput format, ther is an issue here. Will do the same as for ps_options earlier.

comment:2 Changed 13 years ago by Bruno Cornec

Resolution: fixed
Status: assignedclosed

Fixed in rev [928]

Note: See TracTickets for help on using tickets.