Sponsored Content
Top Forums Shell Programming and Scripting How to kill the process when the file is locked? Post 302956465 by vbe on Wednesday 30th of September 2015 08:50:54 AM
Old 09-30-2015
Do you have SAS-SHARE?
 

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

how to kill process from file

hello i want to write a script in unix which read file that contains : hour and process_id like this file bbb: 0:30 6678 1:40 8789 and for every line he check if the hour greater then 30 minutes he kill the process_id the script looks like this cat bbb | while read line do ... (1 Reply)
Discussion started by: naamas03
1 Replies

2. Shell Programming and Scripting

how to kill process from file

i have a script that read a file which contains process_id and time that he's in and it lookes like this 0:30 54545 0:44 66788 0:90 23233 i need to read every line in the file and get the time and if the process is greater then 0:30 to kill the process id the script looks like... (17 Replies)
Discussion started by: naamas03
17 Replies

3. UNIX for Advanced & Expert Users

When kill doesnt work, how to kill a process ?

Hi All, I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages. How can i terminate this daemon ? ? ? Regards, Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies

4. Programming

kill(0,-9) don't kill the process

Hi all i have simple c program , when i wish to kill the app im using kill(0,-9) , but it seams this command don't do any thing and the program. just ignore it . what im doing wrong here ? im using HP-UX ia64 Thanks (9 Replies)
Discussion started by: umen
9 Replies

5. Shell Programming and Scripting

Kill a process without using kill command

Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies

6. Shell Programming and Scripting

kill process from a file or directly with top

i have edited a script to kill an exact mysql process is causing the high load on the server, my problem is, kill dont kill it! script: #!/bin/sh top -n 1 -u mysql | grep mysqld | awk '{print $1}' > pid proc='cat pid' kill -9 $proc or i try with kill -9 `top -n 1 -u mysql | grep mysqld... (8 Replies)
Discussion started by: chandro
8 Replies

7. Shell Programming and Scripting

Kill an specific process ID using the KILL and GREP commands

Good afternoon I need to KILL a process in a single command sentence, for example: kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'` That sentence Kills the process ID corresponding to the program CAL255.4ge. However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies

8. Proxy Server

Samba kill the locked files from a useraccount by multiple smbd pids

Details Samba server: Release: 5.10 Kernel architecture: sun4u Application architecture: sparc Hardware provider: Sun_Microsystems Kernel version: SunOS 5.10 Generic_142909-17 Samba version: Samba version 3.5.6 Smb.conf file section Global: # smb.conf for Airbus Industries fuer... (0 Replies)
Discussion started by: Jean-Guillaume
0 Replies

9. Shell Programming and Scripting

Soft kill a process to redirect the last kbytes output to a file

Hey guys, I have a python script that I call with this line: python mypythonscript.py >> results.csv &The problem is that the redirection from the stdout to the file results.csv only writes 4096 kbyte blocks. So if i kill this process with kill the last kbytes that the script produce will... (6 Replies)
Discussion started by: Mastaer
6 Replies

10. Shell Programming and Scripting

Shell script to report file size, pid and also kill the process

Hi All, Looking for a quick LINUX shell script which can continuously monitors the flle size, report the process which is creating a file greater than certain limit and also kill that process. Can someone please help me on this? (4 Replies)
Discussion started by: vasavimacherla
4 Replies
dtfilsys(file formats)													    dtfilsys(file formats)

NAME
dtfilsys -- CDE file system; directory tree structure DESCRIPTION
The CDE file system is divided into three parts: the root system, /usr/dt, the configuration directory, /etc/dt, and the temporary direc- tory, /var/dt. The root system, /usr/dt, is a read-only directory. It contains all the files that comprise the CDE. The configuration directory, /etc/dt, is the directory CDE applications will search to locate configuration files that have been modified by the system administrator. Default versions of these configuration files are typically located in /usr/dt. The temporary directory, /var/dt, contains temporary information or information that varies in size and existence. Below is a diagram of the directory tree structure for CDE. /etc/dt/appconfig/appmanager/<Lang> /help/<Lang> /icons/<Lang> /types/<Lang> /backdrops/<Lang> /config /palettes/<Lang> /usr/dt/app-defaults/<Lang> /appconfig/appmanager/<Lang> /help/<Lang> /icons/<Lang> /types/<Lang> /bin /config /lib /share/backdrops/<Lang> /include /examples /man /palettes/<Lang> /var/dt/appconfig/appmanager $HOME/.dt/appmanager /help /icons /palettes /sessions /types The following guidelines apply to the contents of these directories: /usr/dt This directory is for use by the CDE system. Applications should never create files in this directory although they may read and execute them. /usr/dt/app-defaults/<Lang> This directory contains the localized versions of the app-defaults files for the CDE clients. /usr/dt/appconfig/appmanager/<Lang> This directory contains the localized versions of the actions files used by the Application Manager. /usr/dt/appconfig/help/<Lang> This directory contains the localized versions of the CDE help volumes and help files. /usr/dt/appconfig/icons/<Lang> This directory contains the localized versions of the icons used by the CDE clients. /usr/dt/appconfig/types/<Lang> This directory contains the localized versions of the actions and data types used by the CDE clients. /usr/dt/bin This directory contains the CDE clients. /usr/dt/config This directory contains default configuration files. /usr/dt/lib This directory contains the shared libraries used by the CDE clients. /usr/dt/share This directory contains CDE elements, typically ASCII files, that are independent of the architecture. /usr/dt/share/backdrops/<Lang> This directory contains the localized versions of the backdrops used by the window manager workspaces and by the Style Manager. /usr/dt/share/examples This directory contains examples of CDE functionality. /usr/dt/share/include This directory is part of the developmewnt environment and includes header files associated with CDE. /usr/dt/share/man This directory contains the man pages for the CDE clients. /usr/dt/share/palettes/<Lang> This directory contains the localized versions of the palettes used by the Style Manager to determine the color scheme. /etc/dt This directory is specified as the CDE configuration directory. /etc/dt/appconfig This directory is used to hold system-administrator defined configuration files /etc/dt/appconfig/appmanager/<Lang> This directory is used to hold system-administrator defined configuration files for the Application Manager. /etc/dt/appconfig/help/<Lang> This directory is used to hold system-administrator defined configuration files for the Help system. /etc/dt/appconfig/icons/<Lang> This directory is used to hold system-administrator defined configuration files for icons. /etc/dt/appconfig/types/<Lang> This directory is used to hold system-administrator defined configuration files for the action and filetype database. /etc/dt/backdrops/<Lang> This directory contains backdrops provided by the system administrator. /etc/dt/config This directory is to contain modified versions of the CDE configuration files (installed in /usr/dt/config). /etc/dt/palettes/<Lang> This directory contains palettes provided by the system administrator. /var/dt This directory is used by CDE for some log files, temporary files, and files that vary in size. /var/dt/appconfig/appmanager This directory is created at login and is used by the Application Manager. $HOME/.dt This directory contains information specific to the user. $HOME/.dt/appmanager This directory is used to hold user-defined configuration files for the Application Manager. $HOME/.dt/backdrops This directory is used to hold user-customized backdrops for the Style Manager. $HOME/.dt/help This directory is used to hold user-defined configuration files for the Help system. $HOME/.dt/icons This directory is used to hold user-defined configuration files for icons. $HOME/.dt/palettes This directory is used to hold user-customized palettes for the Style Manager. $HOME/.dt/sessions This directory is used to store session information between CDE sessions. $HOME/.dt/tmp This directory is used to hold temporary information. $HOME/.dt/types This directory is used to hold user-defined configuration files for the action and filetypes database. The Minimum Runtime Environment The minimum environment required for a system to support CDE consists of the following files and directories: /usr/dt/app-defaults/C/ tpad Dtksh Dtterm /usr/dt/appconfig/tttypes/ types.xdr /usr/dt/bin/ dsdm dtaction dtappgather dtappintegrate dtexec dtksh dtpad dtspcd dtterm suid_exec rpc.ttdbserver tt_type_comp ttsession SEE ALSO
dtenvvar(5) dtfilsys(file formats)
All times are GMT -4. The time now is 12:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy