Précédent   Forum des professionnels en informatique > Systèmes > Linux > Applications > Shell
Shell Vos questions sur l'utilisation des commandes shell
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
Vieux 25/01/2010, 10h51   #1
Membre confirmé
 
Inscription : mars 2004
Messages : 1 149
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 1 149
Points : 224
Points : 224
Par défaut Etat d'avancement d'un script

Bonjour à tous,

est-il possible de connaître l'état d'un script ?

Mon problème est le suivant, j'ai un script qui tourne en machine depuis plus d'une heure, alors qu'il dure en général 10 minute...

Comment savoir ou en est mon script ?

Comment savoir s'il boucle ?

J'ai utilisé la commande

mais cela me permet juste de savoir si le script est en machine.

Merci d'avance pour votre aide.
sam01 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/01/2010, 11h18   #2
Expert Confirmé
 
Avatar de N_BaH
 
Inscription : février 2008
Messages : 1 896
Détails du profil
Informations forums :
Inscription : février 2008
Messages : 1 896
Points : 3 676
Points : 3 676
Bonjour SamO1,

...
?
N_BaH est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/01/2010, 12h22   #3
Modérateur
 
Avatar de gangsoleil
 
R&D en systemes informatiques bas niveau Unix/Linux
Inscription : mai 2004
Messages : 5 129
Détails du profil
Informations personnelles :
Âge : 31
Localisation : France, Isère (Rhône Alpes)

Informations professionnelles :
Activité : R&D en systemes informatiques bas niveau Unix/Linux

Informations forums :
Inscription : mai 2004
Messages : 5 129
Points : 8 749
Points : 8 749
Bonjour,

Tu as aussi pstack qui te permet de voir ce qui se passe.
__________________
Modérateur "C", "Informatique Générale & Hardware" et "Unix"
Les règles du forum
gangsoleil est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/01/2010, 13h35   #4
Membre confirmé
 
Inscription : mars 2004
Messages : 1 149
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 1 149
Points : 224
Points : 224
Aucuen des deux n'est valable...

Je m'explique,

watch : c'est trop tard, le script est déjà parti. J'ai besoin de savoir s'il boucle
alors qu'il tourne déjà. Le souci avec watch, c'est qu'il faut lancer le script (à nalyser) précédé de la commande watch.

Et pour le pstack, il n'est tout simplement pas installé....
sam01 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/01/2010, 13h56   #5
Membre habitué
 
Inscription : mai 2007
Messages : 138
Détails du profil
Informations personnelles :
Âge : 59

Informations forums :
Inscription : mai 2007
Messages : 138
Points : 108
Points : 108
S'il traite des fichiers peut être peux tu regarder avec lsof ?
Voir aussi si la taille libre de ton disque évolue ?
Voir les fichiers de trace ?
noooop est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/01/2010, 14h11   #6
Membre confirmé
 
Inscription : mars 2004
Messages : 1 149
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 1 149
Points : 224
Points : 224
En gros si j'ai bien compris,
il n'y a pas de solution miracle,

il faut un réel outil de monitoring...
sam01 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/01/2010, 10h57   #7
Modérateur
 
Avatar de gangsoleil
 
R&D en systemes informatiques bas niveau Unix/Linux
Inscription : mai 2004
Messages : 5 129
Détails du profil
Informations personnelles :
Âge : 31
Localisation : France, Isère (Rhône Alpes)

Informations professionnelles :
Activité : R&D en systemes informatiques bas niveau Unix/Linux

Informations forums :
Inscription : mai 2004
Messages : 5 129
Points : 8 749
Points : 8 749
Bonjour,

Quel est ton OS ? As-tu la possibilite d'installer un ou plusieurs logiciels ?

Et enfin, qu'appelles-tu un reel outil de monitoring ?

As-tu gstack ?
__________________
Modérateur "C", "Informatique Générale & Hardware" et "Unix"
Les règles du forum
gangsoleil est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/01/2010, 11h43   #8
Membre confirmé
 
Inscription : mars 2004
Messages : 1 149
Détails du profil
Informations forums :
Inscription : mars 2004
Messages : 1 149
Points : 224
Points : 224
Bonjour,

je suis sur de l'AIX.

Je ne suis pas admin, donc je ne peux pas installer de logicile.

J'ai fait un whereis gstack et je n'en ai pas.

Existet'il une commande qui me permette d'afficher tous les outils de supervision dispo ?

En effectuant un ls dans /usr/bin j'ai la liste suivante

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
 
 
7135_change_drive     chsensor              fccheck               ldedit                msh                   resetrsrc             tabs
7135_device_config    chserver              fcclear               leave                 mt                    resetrsrc-api         tail
7135_device_status    chsh                  fcdecode              libDsmStub.a          mtrcsave              restorevgfiles        talk
7135_drive_config     chsrcmeth             fcdispfid             libDsmStub54.a        mv                    restvg                tar
7135_drive_status     chsrfld-api           fcfilter              libnetcfg             mvt                   rev                   tbl
7135_get_drive_info   chssys                fcinit.csh            line                  namerslv              rexec                 tc
7135_get_lun_info     chtz                  fcinit.sh             lint                  nawk                  rexx                  tcbck
7135_get_subsys_info  chuser                fcismd                listdgrp              nddctl                rexx.img              tcopy
7135_set_lun_info     cksum                 fcistm                listvgbackup          ndx                   rexxc                 tctl
7135_set_subsys_info  clear                 fcjoin.sed            ln                    neqn                  rexxtry.cmd           tee
7135_subsys_config    cmp                   fclogerr              locale                netpmon               rksh                  telnet
7135_subsys_status    col                   fcparse.awk           locale64              netstat               rksh93                template7135
CreateTable.cmd       colcrt                fcpushstk             localedef             newform               rlogin                termdef
IbDebugChk            colrm                 fcreport              lock                  newgrp                rm                    test
IbDebugOff            comm                  fcslogrpt             locktrace             news                  rm_mlcache_file       tftp
IbDebugOn             command               fcstat                logevent              next                  rmail                 tic
MSDEQ                 comp                  fcstkrpt              logger                nice                  rmatmpvc              time
MSENQ                 compress              fcstrip.sed           login                 nl                    rmaudrec              timex
MSLIS                 configassist          fcsysparse            logins                nm                    rmcctrl               tip
Mail                  confsrc               fcteststk             logname               nohup                 rmcondition           tirpcgen
ManGetURL.class       copydump              fddistat              logout                notifyevent           rmcondresp            tn
RXQUEUE               copydumpmenu          fg                    look                  nroff                 rmdir                 tn3270
RXSUBCOM              cp                    fget_config           lorder                nslookup              rmf                   tokstat
Rsh                   cpan                  fgrep                 lp                    ntbl_reset_datafiles  rmlpcmd               tokstat.cstok
X11                   cpio                  file                  lparstat              ntblclean             rmm                   topas
X11r5                 cpp                   filemon               lphistory             ntblstatus            rmnotify              topasout
X11r6                 cppstdin              fileplace             lppchk                od                    rmque                 touch
a2p                   cpupstat              fileplacej2           lppchk_r              odmadd                rmquedev              tprof
acctcom               cronadm               fileplacej2_64        lpq                   odmchange             rmresponse            tput
acctctl               crontab               find                  lpr                   odmcreate             rmrset                tr
acctras               csh                   find2perl             lprm                  odmdelete             rmrsrc                trace
acctrpt               csplit                finger                lpstat                odmdrop               rmrsrc-api            traceroute
acctrpt64             csum                  fmt                   ls                    odmget                rmsensor              tracesoff
aclconvert            ct                    fold                  lsactdef              odmshow               rmserver              traceson
acledit               ctags                 folder                lsallq                on                    rmsrcmeth             trbsd
aclget                ctsettrace            folders               lsallqdev             openssl               rmsrrow-api           trcctl
aclgettypes           cu                    forw                  lsaudrec              openssl64             rmsrtbl-api           trcdead
aclput                curl                  fpm                   lsauthent             oslevel               rmss                  trcevgrp
ali                   curt                  fraidmgr              lsclcfg               pack                  rmssys                trcnm
alias                 cut                   frcactrl              lscmdargdef           packf                 rpcgen                trcoff
alog                  cw                    from                  lscondition           pagdel                rpcinfo               trcon
alstat                cxref                 fsplit                lscondresp            pagesize              rpm                   trcrpt
anno                  date                  ftp                   lscore                paginit               rpm2cpio              trcstop
apply                 dc                    gawk                  lsdisp                paglist               rpttr                 trcupdate
apropos               dcem                  gawk-3.1.3            lsevent               passwd                rsh                   trexx
ar                    dcemAccess            gdam                  lsfont                paste                 rtl_enable            troff
arp.atm               dcp                   gencat                lskbd                 patch                 runact                true
arp.ib                dd                    gencore               lslicense             pathchk               runact-api            truss
as                    defaultbrowser        gendiff               lslpclacl             pax                   runcat                tset
asa                   deroff                genkex                lslpcmd               pcat                  runlpcmd              tsh
at                    detachrset            genkld                lslpp                 perl                  rup                   tsort
atmstat               devdump               genld                 lslpp_r               perlbug               ruptime               tty
atmstat.batm          df                    gennames              lslpracl              perlcc                ruser                 tvi
atmstat.chrm          dfmounts              gensyms               lslpriacl             perldoc               rusers                type
atmsvcd               dfshares              get_config            lslprsacl             perlivp               rwho                  u
atmvcstat             diction               getconf               lsmksysb              pg                    rxdelipc              ul
atq                   diff                  getopt                lsnlspath             pgawk                 rxqueue               ulimit
atrm                  diff3                 getopts               lsque                 pgawk-3.1.3           rxsubcom              umask
attachrset            diffmk                grap                  lsquedev              pic                   s2p                   unalias
awk                   dig                   greek                 lsresponse            pick                  savevg                uname
banner                dircmp                grep                  lsrsrc                piconv                scan                  uncompress
basename              dirname               groups                lsrsrc-api            pl2pm                 scp                   unexpand
batch                 disable               gsk7capicmd           lsrsrcacl-api         pmctl                 scraidmgr             unifdef
bc                    dist                  gsk7capicmd_64        lsrsrcdef             pmcycles              script                uniq
bdiff                 dld7135               gsk7cmd               lsrsrcdef-api         pmlist                sdiff                 units
bellmail              dmpuncompress         gsk7cmd_64            lssavevg              pod2html              sed                   unpack
bfs                   domainname            gsk7ikm               lssec                 pod2latex             send                  untab
bg                    dping                 gsk7ikm_64            lssensor              pod2man               sendbug               uptime
biff                  dprofpp               gsk7isppc             lssr-api              pod2text              setclock              users
bootlist              dprog                 gsk7isppc_64          lssrc                 pod2usage             setgroups             usrck
bs                    drvstat7135           gsk7jk                lssrtbl-api           podchecker            setmaps               utftp
bsh                   dscreen               gsk7ver               lssrtbldef-api        podselect             setsenv               uucp
bunzip2               dsh                   gsk7ver_64            m4                    pprof                 settime               uudecode
burst                 dshbak                gunzip                mach                  pr                    setuname              uuencode
bzcat                 dsmadmc               gzexe                 macref                prev                  sftp                  uulog
bzip2                 dsmagent              gzip                  mail                  printenv              sh                    uuname
bzip2recover          dsmc                  h2ph                  mailx                 printf                shell                 uupick
c2ph                  dsmcad                h2xs                  make                  proccred              show                  uupoll
c_rehash              dsmj                  hash                  makedev               procfiles             showmount             uuq
cal                   dsmswitch             hdlcstat              makekey               procflags             sisraidmgr            uusend
calendar              dsmtca                head                  man                   procldd               sissasraidmgr         uusnap
cancel                dsmtrace              help                  manage_disk_drivers   procmap               size                  uustat
canonls               dspcat                host                  mant                  procrun               sleep                 uuto
captoinfo             dspmsg                hostent               mark                  procsig               smit                  uux
capture               du                    hostname              mesg                  procstack             smitacl               vacation
cat                   dump                  hostnew               mhmail                procstop              smitty                vedit
cb                    echo                  hp                    mhpath                proctree              sno                   vgrind
cd                    ed                    hplj                  migrate7135           procwait              soelim                vi
cdrecord              edit                  hpmcount              mkatm                 procwdx               sort                  view
cflow                 egrep                 hpmstat               mkatmpvc              proff                 sortm                 vmh
chatmpvc              elogevent             hyphen                mkcatdefs             projctl               spell                 vmstat
chauthent             emstat                ibm3812               mkcdef                prompter              spellin               vmstat64
chcondition           enable                ibm3816               mkcondition           ps                    spellout              w
chcore                enc2xs                ibm5584               mkcondresp            psed                  splain                w64
chdisp                enotifyevent          ibm5585H-T            mkdir                 psh                   splat                 wait
check7135             enq                   ibm5587G              mkfifo                pstruct               split                 wallevent
checkcw               enroll                ibstat                mkfont                ptx                   splp                  wc
checkeq               entstat               iconv                 mkgroup               pwck                  ssh                   what
checkmm               entstat.bent          id                    mkiba                 pwd                   ssh-add               whatis
checkmm1              entstat.ethchan       ifconfig.at           mkisofs               pwdadm                ssh-agent             whatnow
checknr               entstat.goent         ifconfig.ib           mklpcmd               pwdck                 ssh-keygen            whereis
chfn                  entstat.gxent         igawk                 mknotify              qadm                  ssh-keyscan           which
chfont                entstat.hea           inc                   mkque                 qcan                  startcondresp         who
chgroup               entstat.kngent        infocmp               mkquedev              qchk                  startrsrc             whoami
chgrp                 entstat.kxent         inq                   mkresponse            qhld                  startrsrc-api         whois
chgrpmem              entstat.ment          install               mkrole                qmov                  startsrc              whom
chhwkbd               entstat.phxent        installbsd            mkrset                qpri                  stopcondresp          wlmmon
chkbd                 entstat.scent         iostat                mkrsrc                qprt                  stoprsrc              write
chkey                 entstat.vent          ipcrm                 mkrsrc-api            raidmgr               stoprsrc-api          wsm
chlang                entstat.vioent        ipcs                  mksensor              ranlib                stopsrc               xargs
chlicense             env                   ipcs64                mkserver              rcm                   strings               xget
chlpclacl             eqn                   ipcs_perf             mksrcmeth             rcp                   strip                 xmtopas
chlpcmd               errclear              ipfilter              mksrcol-api           rdist                 stripnm               xmwlm
chlpracl              errinstall            isodump               mksrrow-api           rdistd                stty                  xsend
chlpriacl             errlogger             isoinfo               mksrtbl-api           read                  style                 xsubpp
chlprsacl             errmsg                isovfy                mkssys                readcd                su                    yes
chmod                 errpt                 istat                 mksysb                recsh                 subj                  ypcat
chown                 errupdate             jobs                  mkszfile              red                   sudo                  ypmatch
chpasswd              ewallevent            join                  mktcpip.atm           refile                sum                   yppasswd
chque                 ex                    keycomp               mktcpip.ib            refresh               svmon                 ypservers
chquedev              execrset              keylogin              mkuser                refrsrc               syscall               ypwhich
chresponse            expand                kill                  mkvgdata              refrsrc-api           sysck                 zcat
chrmcacl              explain               ksh                   mm                    refsensor             sysck_r               zcmp
chrole                expr                  ksh93                 mmt                   regcmp                syscorepath           zgrep
chrsrc                f                     last                  more                  remsh                 sysdumpdev            zmore
chrsrc-api            factor                lastcomm              mpio_get_config       renice                sysdumpstart          znew
chrsrcacl-api         false                 ld                    mpstat                repl                  sysline
chsec                 fc                    ldd                   msgchk                reset                 tab
il y a peut-être des commandes utiles ?
sam01 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/01/2010, 12h55   #9
Membre habitué
 
Inscription : mai 2007
Messages : 138
Détails du profil
Informations personnelles :
Âge : 59

Informations forums :
Inscription : mai 2007
Messages : 138
Points : 108
Points : 108
Que fait ton script comme tâches ?
noooop est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/01/2010, 11h23   #10
Nouveau Membre du Club
 
Inscription : juin 2004
Messages : 24
Détails du profil
Informations forums :
Inscription : juin 2004
Messages : 24
Points : 28
Points : 28
Salut,

sous AIX tu as une commande qui s'appelle topas, mais elle n'est peut-être pas assez évolué pour répondre à tes besoins.
Asta est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/01/2010, 11h31   #11
Membre régulier
 
Christophe LE FLOCH
Inscription : août 2009
Messages : 105
Détails du profil
Informations personnelles :
Nom : Christophe LE FLOCH
Âge : 37

Informations forums :
Inscription : août 2009
Messages : 105
Points : 90
Points : 90
La commande ps -ef te donne également le temps cpu consommé depuis le lancement du process
mongolic est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +1. Il est actuellement 18h45.


 
 
 
 
Partenaires

Hébergement Web