Kok-Yong Tan
ktan at realityartisans.com
Wed Mar 9 14:53:40 PST 2011
You're trying to kill a job with a process id!!! There's a difference
between jobs and processes on a Unix system. Try this instead:
sudo kill -9 22766
On Wed, Mar 9, 2011, at 17:36, Bruno DOUTRIAUX - Youmé-TECH wrote:
> and
>
> imac-de-meriem-lentz:~ harlock59$ sudo kill %22766
> Password:
> kill: illegal process id: %22766
> imac-de-meriem-lentz:~ harlock59$
>
>
> Le 9 mars 2011 23:34, Bruno DOUTRIAUX - Youmé-TECH <harlock59 at gmail.com
> > a écrit :
> hello,
>
> the command ps-a gives me that
>
> so i tried "kill %22766"
>
> but it gave me that
> -bash: kill: %22766: no such job
>
>
> imac-de-meriem-lentz:~ harlock59$ ps -a
> PID TTY TIME CMD
> 1432 ttys000 0:00.47 login -pf harlock59
> 1433 ttys000 0:00.24 -bash
> 15395 ttys000 0:00.01 ps -a
> 22766 ttys000 0:00.74 /usr/bin/tclsh /opt/local/bin/port -d
> install gcc45
> 75531 ttys000 0:00.02 man port
> 75540 ttys000 0:00.01 sh -c (cd '/opt/local/share/man' && (echo
> ".ll 7.7i"; echo "
> 75541 ttys000 0:00.01 sh -c (cd '/opt/local/share/man' && (echo
> ".ll 7.7i"; echo "
> 75546 ttys000 0:00.00 sh -c (cd '/opt/local/share/man' && (echo
> ".ll 7.7i"; echo "
> 75547 ttys000 0:00.21 /usr/bin/less -is
> 15386 ttys001 0:01.64 /usr/bin/tclsh /opt/local/bin/port selfupdate
> 15388 ttys001 0:12.54 /usr/bin/rsync -rtzv --delete-after rsync://
> rsync.macports.o
> 15389 ttys001 0:10.54 /usr/bin/rsync -rtzv --delete-after rsync://
> rsync.macports.o
> 18343 ttys001 0:00.05 login -pf harlock59
> 18344 ttys001 0:00.18 -bash
> 22117 ttys001 0:00.02 /bin/sh -c r=`${PWDCMD-pwd}`; export r;
> s=`cd ../gcc-4.5.0;
> 22126 ttys001 0:00.01 /bin/sh -c r=`${PWDCMD-pwd}`; export r;
> s=`cd ../gcc-4.5.0;
> 22136 ttys001 0:00.94 /usr/bin/make DESTDIR=
> RPATH_ENVVAR=DYLD_LIBRARY_PATH TARGET
> 22139 ttys001 0:00.02 /bin/sh -c fail= failcom='exit 1'; for f in
> x $MAKEFLAGS; do
> 29283 ttys001 0:06.95 /usr/bin/make AR_FLAGS=rc CC_FOR_BUILD=/usr/
> bin/gcc-4.0 CFLA
> 31824 ttys001 0:57.85 /usr/bin/tclsh /opt/local/bin/port install
> gcc45
> 55997 ttys001 0:00.01 sh -c cd "/opt/local/var/macports/build/
> _opt_local_var_macp
> 55998 ttys001 0:00.37 /usr/bin/make -j1 bootstrap
> 58420 ttys001 0:00.02 /bin/sh -c r=`${PWDCMD-pwd}`; export r;
> s=`cd ../gcc-4.5.0;
> 58433 ttys001 0:00.47 /usr/bin/make DESTDIR=
> RPATH_ENVVAR=DYLD_LIBRARY_PATH TARGET
> 62780 ttys001 0:19.34 /bin/sh ./libtool --tag=CXX --mode=link /
> opt/local/var/macpo
> 67253 ttys001 0:01.92 dsymutil .libs/libgcj.11.dylib
> 67659 ttys001 0:00.76 /usr/bin/tclsh /opt/local/bin/port install
> gcc45
> 69244 ttys001 0:00.73 /usr/bin/tclsh /opt/local/bin/port -d
> install gcc45
> 62770 ttys002 0:00.08 login -pf harlock59
> 62779 ttys002 0:00.35 -bash
> 63361 ttys002 0:06.44 top
> 11306 ttys003 0:00.25 login -pf harlock59
> 11307 ttys003 0:00.04 -bash
> 41378 ttys004 0:00.06 login -pf harlock59
> 41432 ttys004 0:00.05 -bash
> 50931 ttys004 1:40.20 top
> 85107 ttys004 0:00.06 man top
> 85113 ttys004 0:00.02 sh -c (cd '/usr/share/man' && /usr/bin/tbl /
> usr/share/man/ma
> 85115 ttys004 0:00.01 sh -c (cd '/usr/share/man' && /usr/bin/tbl /
> usr/share/man/ma
> 85122 ttys004 0:00.00 sh -c (cd '/usr/share/man' && /usr/bin/tbl /
> usr/share/man/ma
> 85124 ttys004 0:00.08 /usr/bin/less -is
> 86474 ttys004 327:18.24 top -o cpu
>
>
> 2011/3/9 Russell Jones <russell.jones at physics.ox.ac.uk>
> If you noticed the number in square brackets next to the process
> when you suspended it, you can also say "kill %n" where n is the
> number, e.g. kill %1. You then need to type fg (or bg) to continue
> the process, so it can die.
>
> Russell
> From: macports-users-bounces at lists.macosforge.org [macports-users-bounces at lists.macosforge.org
> ] on behalf of Jason Swails [jason.swails at gmail.com]
> Sent: 09 March 2011 15:16
> To: Bruno DOUTRIAUX - Youmé-TECH
> Cc: macports-users at lists.macosforge.org
> Subject: Re:
>
> Use Ctrl-C to kill the process rather than suspend it. You can run
> it in the foreground again using "fg" and then hit Ctrl-C, or just
> use the "kill" command with its PID to kill it.
>
> Good luck,
> Jason
>
> 2011/3/9 Bruno DOUTRIAUX - Youmé-TECH <harlock59 at gmail.com>
> Hello,
>
> i was trying to install gcc45 using mac port but it hanged so i did
> ctrl z
> and it stopped then i redid sudo port install gcc45
> and then i had a lock.
> how can i unlock it ?
>
> imac-de-meriem-lentz:~ harlock59$ sudo port -d install gcc45
> DEBUG: Found port in file:///opt/local/var/
> macports/sources/rsync.macports.org/release/ports/lang/gcc45
> DEBUG: Changing to port directory: /opt/local/var/macports/sources/
> rsync.macports.org/release/ports/lang/gcc45
> DEBUG: OS Platform: darwin
> DEBUG: OS Version: 9.8.0
> DEBUG: Mac OS X Version: 10.5
> DEBUG: System Arch: powerpc
> DEBUG: setting option os.universal_supported to yes
> DEBUG: org.macports.load registered provides 'load', a pre-existing
> procedure. Target override will not be provided
> DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-
> existing procedure. Target override will not be provided
> DEBUG: Reading variant descriptions from /opt/local/var/macports/
> sources/rsync.macports.org/release/ports/_resources/port1.0/
> variant_descriptions.conf
> DEBUG: 'universal_variant no' specified, so not adding the default
> universal variant
> DEBUG: Requested variant darwin is not provided by port gcc45.
> DEBUG: Requested variant macosx is not provided by port gcc45.
> DEBUG: Executing variant powerpc provides powerpc
> Waiting for lock on /opt/local/var/macports/build/
> _opt_local_var_macports_sources_rsync
> .macports.org_release_ports_lang_gcc45/work/.macports.gcc45.state
>
>
> --
> ------------------------------------------------------------------
> Bruno DOUTRIAUX
> EI Youmé-TECH
> Artisan Auto-Entrepreneur
> 03 27 41 13 54 (fixe)
> 06 58 60 39 53 (gsm)
> Technicien Dépannages Informatique
> www.youmetech.fr
> www.depannage-informatique-valenciennes.fr
> -----------------------------------------------------------------
>
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>
>
>
>
> --
> Jason M. Swails
> Quantum Theory Project,
> University of Florida
> Ph.D. Candidate
> 352-392-4032
>
>
>
> --
> ------------------------------------------------------------------
> Bruno DOUTRIAUX
> EI Youmé-TECH
> Artisan Auto-Entrepreneur
> 03 27 41 13 54 (fixe)
> 06 58 60 39 53 (gsm)
> Technicien Dépannages Informatique
> www.youmetech.fr
> www.depannage-informatique-valenciennes.fr
> -----------------------------------------------------------------
>
>
>
>
> --
> ------------------------------------------------------------------
> Bruno DOUTRIAUX
> EI Youmé-TECH
> Artisan Auto-Entrepreneur
> 03 27 41 13 54 (fixe)
> 06 58 60 39 53 (gsm)
> Technicien Dépannages Informatique
> www.youmetech.fr
> www.depannage-informatique-valenciennes.fr
> -----------------------------------------------------------------
>
>
>
>
> --
> ------------------------------------------------------------------
> Bruno DOUTRIAUX
> EI Youmé-TECH
> Artisan Auto-Entrepreneur
> 03 27 41 13 54 (fixe)
> 06 58 60 39 53 (gsm)
> Technicien Dépannages Informatique
> www.youmetech.fr
> www.depannage-informatique-valenciennes.fr
> -----------------------------------------------------------------
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
--
Reality Artisans, Inc. # Network Wrangling and Delousing
P.O. Box 565, Gracie Station # Apple Certified Consultant
New York, NY 10028-0019 # Apple Consultants Network member
<http://www.realityartisans.com> # Apple Developer Connection member
(212) 369-4876 (Voice) # My PGP public key can be found
at <https://keyserver.pgp.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20110309/471edd8a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3662 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20110309/471edd8a/attachment.bin>
More information about the macports-users
mailing list