Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Can you check when a file was last run? Post 302541798 by curleb on Monday 25th of July 2011 08:23:54 PM
Old 07-25-2011
Last executed, no. Last touched/accessed, yes.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Check the process before run or not

Dear all, I am writing a shell that check the java application already run. If it is not run before it will run next commands. ps -ef | grep java Thank you :) (3 Replies)
Discussion started by: mr_bold
3 Replies

2. HP-UX

fsck! How to run Full File System Check

Dear all I am new for HP-UX. I have HP rp2470 running HP-UX 10.x When i run fsck in a root, the output is as below: #:root> fsck fsck: /dev/vg00/rlvol1: mounted file system continue (y/n)? y ** /dev/vg00/rlvol1 ** Last Mounted on /stand ** Phase 1 - Check Blocks and Sizes ** Phase... (3 Replies)
Discussion started by: hungevntelecom
3 Replies

3. AIX

run which command to check the actual user

hi gurus, i have a question: when run which javac under a user account I got the following results: PROD DB Server: /usr/java14/bin/javac DR DB Server: /usr/java14/bin/javac DEV DB Server: /usr/java5_64/bin/javac The .profile in all environments are same. so how do know who is the... (1 Reply)
Discussion started by: lweegp
1 Replies

4. UNIX for Dummies Questions & Answers

check for a file and run some commands

Hi all, Can you guys please help me with this... I am on AIX and need to prepare a script which will 1. check for a file named do_backup in the current file system 2. If the file exists i need to run some commands and exit, if the file doesn't exist then sleep for 15 mins and try... (2 Replies)
Discussion started by: family_guy
2 Replies

5. Shell Programming and Scripting

check status and run the job

I have one unix job which can be executed using following commands: csh setenv HOME /data/ftpqa/ARTQ/orascripts sudo -u artq /apps/ralocal/bin/runscript artq ../out/art_neg_item_cost_update.csh I want to create one more script, which checks whether art_neg_item_cost_update.csh is already... (1 Reply)
Discussion started by: amarpreetka
1 Replies

6. Shell Programming and Scripting

Script to run php and check value in txt

Hello, I'm looking for a bash script, that I will run from cron, that executes a php script. After 5 minutes that the php script is executed, the bash script, must check a value in a text file /public_html/check.txt if check.txt = 0 the script will stop, if check.txt is not = 0 it must... (0 Replies)
Discussion started by: andymc1
0 Replies

7. Shell Programming and Scripting

Csh/tcsh : Check the file existance and run the script

Hi, I've to wait until a file generated and once its generated, source another script in Linux terminal. Please help me as this is very very urgent. The code should be something like if ( -e "/abc/xyz/a.txt ) source aaa.csh else sleep This should be repeated till the if... (4 Replies)
Discussion started by: kumar_eee
4 Replies

8. UNIX for Dummies Questions & Answers

Script should check and run only on Sunday

Hi All, I have a script, I want to make sure the script should check whether the day is sunday, only then it should run, if it is run other days it should check and exit the script. Kindly help. Thanks in Advance !! (41 Replies)
Discussion started by: nanz143
41 Replies

9. Shell Programming and Scripting

Check space and run command

Hey i have problem with cut and print column problem is i want to execute shell script to run df -h /tmp if the result ( Use% ) was more than 50% , run rm -rf /tmp/* any idea how cut the result of df -h /tmp ? (1 Reply)
Discussion started by: nimafire
1 Replies

10. UNIX for Beginners Questions & Answers

How to check who run the command?

Dear Team, i need to know in linux if someone run the command in linux server where i can check on server . i need to know the below points who (user) when (date and time) what (command) regards, scriptors (1 Reply)
Discussion started by: scriptor
1 Replies
Tcl_SetChannelError(3)					      Tcl Library Procedures					    Tcl_SetChannelError(3)

__________________________________________________________________________________________________________________________________________________

NAME
Tcl_SetChannelError, Tcl_SetChannelErrorInterp, Tcl_GetChannelError, Tcl_GetChannelErrorInterp - functions to create/intercept Tcl errors by channel drivers. SYNOPSIS
#include <tcl.h> void Tcl_SetChannelError(chan, msg) void Tcl_SetChannelErrorInterp(interp, msg) void Tcl_GetChannelError(chan, msgPtr) void Tcl_GetChannelErrorInterp(interp, msgPtr) ARGUMENTS
Tcl_Channel chan (in) Refers to the Tcl channel whose bypass area is accessed. Tcl_Interp* interp (in) Refers to the Tcl interpreter whose bypass area is accessed. Tcl_Obj* msg (in) Error message put into a bypass area. A list of return options and values, followed by a string message. Both message and the option/value information are optional. Tcl_Obj** msgPtr (out) Reference to a place where the message stored in the accessed bypass area can be stored in. _________________________________________________________________ DESCRIPTION
The current definition of a Tcl channel driver does not permit the direct return of arbitrary error messages, except for the setting and retrieval of channel options. All other functions are restricted to POSIX error codes. The functions described here overcome this limitation. Channel drivers are allowed to use Tcl_SetChannelError and Tcl_SetChannelErrorInterp to place arbitrary error messages in bypass areas defined for channels and interpreters. And the generic I/O layer uses Tcl_GetChannelError and Tcl_GetChannelErrorInterp to look for messages in the bypass areas and arrange for their return as errors. The posix error codes set by a driver are used now if and only if no messages are present. Tcl_SetChannelError stores error information in the bypass area of the specified channel. The number of references to the msg object goes up by one. Previously stored information will be discarded, by releasing the reference held by the channel. The channel reference must not be NULL. Tcl_SetChannelErrorInterp stores error information in the bypass area of the specified interpreter. The number of references to the msg object goes up by one. Previously stored information will be discarded, by releasing the reference held by the interpreter. The interpreter reference must not be NULL. Tcl_GetChannelError places either the error message held in the bypass area of the specified channel into msgPtr, or NULL; and resets the bypass. I.e. after an invokation all following invokations will return NULL, until an intervening invokation of Tcl_SetChannelError with a non-NULL message. The msgPtr must not be NULL. The reference count of the message is not touched. The reference previously held by the channel is now held by the caller of the function and it is its responsibility to release that reference when it is done with the object. Tcl_GetChannelErrorInterp places either the error message held in the bypass area of the specified interpreter into msgPtr, or NULL; and resets the bypass. I.e. after an invokation all following invokations will return NULL, until an intervening invokation of Tcl_SetChannel- ErrorInterp with a non-NULL message. The msgPtr must not be NULL. The reference count of the message is not touched. The reference previ- ously held by the interpreter is now held by the caller of the function and it is its responsibility to release that reference when it is done with the object. Which functions of a channel driver are allowed to use which bypass function is listed below, as is which functions of the public channel API may leave a messages in the bypass areas. Tcl_DriverCloseProc May use Tcl_SetChannelErrorInterp, and only this function. Tcl_DriverInputProc May use Tcl_SetChannelError, and only this function. Tcl_DriverOutputProc May use Tcl_SetChannelError, and only this function. Tcl_DriverSeekProc May use Tcl_SetChannelError, and only this function. Tcl_DriverWideSeekProc May use Tcl_SetChannelError, and only this function. Tcl_DriverSetOptionProc Has already the ability to pass arbitrary error messages. Must not use any of the new functions. Tcl_DriverGetOptionProc Has already the ability to pass arbitrary error messages. Must not use any of the new functions. Tcl_DriverWatchProc Must not use any of the new functions. Is internally called and has no ability to return any type of error whatsoever. Tcl_DriverBlockModeProc May use Tcl_SetChannelError, and only this function. Tcl_DriverGetHandleProc Must not use any of the new functions. It is only a low-level function, and not used by Tcl commands. Tcl_DriverHandlerProc Must not use any of the new functions. Is internally called and has no ability to return any type of error whatsoever. Given the information above the following public functions of the Tcl C API are affected by these changes. I.e. when these functions are called the channel may now contain a stored arbitrary error message requiring processing by the caller. Tcl_StackChannel Tcl_Seek Tcl_Tell Tcl_ReadRaw Tcl_Read Tcl_ReadChars Tcl_Gets Tcl_GetsObj Tcl_Flush Tcl_WriteRaw Tcl_WriteObj Tcl_Write Tcl_WriteChars All other API functions are unchanged. Especially the functions below leave all their error information in the interpreter result. Tcl_Close Tcl_UnregisterChannel Tcl_UnstackChannel SEE ALSO
Tcl_Close(3), Tcl_OpenFileChannel(3), Tcl_SetErrno(3) KEYWORDS
channel driver, error messages, channel type Tcl 8.5 Tcl_SetChannelError(3)
All times are GMT -4. The time now is 08:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy