Opened 18 years ago

Closed 18 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:


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 by Bruno Cornec, 18 years ago

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 by Bruno Cornec, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed in rev [928]

Note: See TracTickets for help on using tickets.