test if file is open by another process or user

  • johnsonbryce
  • Born
  • Born
  • johnsonbryce
  • Posts: 2

Post 3+ Months Ago

I need to write a function that will work in sh/ksh shell that will test to see if a file has already been opened for writing by another user, but i don't have execute permissions on fuser and lsof not on system

i think you can also do it using the "test -t" but can't seem to figure out the syntax - has anyone done this?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 69 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.