How to see open files on server
I want to be able to see which files that are open on my server by my users. Is there a tool or utility to see this?
Ive tried lsof but i find that not usable.
The AFP Service log can show access to files, however the way entries are logged makes it practically impossible without huge effort to track down which user was responsible.
Similar Messages
-
How do I manage open files in Server 2012 without resorting to 3rd party application?
How do I manage open files in Server 2012 without resorting to 3rd party application?
I cannot find the Mange open files in FSRM.
ThanksWouldn't it make sense to place it in the server manager / shares section?
I mean, second to creating or finding a share, isn't this what most users would be after?
For like 20 years we've been trained to right click to find stuff Microsoft is hiding, and right click don't do nothin' here. You gotta go hunting under tools. Or, forget the new half-baked interface with half of what you need and go old school,
direct to Start - Computer..Right Click.. whoops... that doesn't exist anymore.....
Drool.........drool.............Find that hiding, blinking start button in a RDP session, click start after three trys, and TYPE IN "Computer Management" . Right Click, Pin it to your desktop, pin it to the start screen, pin it to the taskbar, send
it to OneNote, and upload it to skydrive so you can find it again, then get back to what you were doing....to find the cottin' pickin open files and kick your users off so you can have your way with the server. -
How to see hidden files in folder, how to see hidden files in folder
how to see hidden files in folders
Welcome to Apple Support Communities
You can't see by default hidden files through Finder. However, you can do it with a command that you can copy in Terminal (in /Applications/Utilities). Open this application and type:
defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder
After doing it, you will be able to see hidden files through Finder in all the volumes connected to the MacBook Pro -
How to make html file on server side from the data entered in text area
Hi!
I want to know how to make .html file on server side. Like if i enter the data in text area ( or like we normaly see when we write mail that editor) and we can use html tages in it and when user submit form all the data in that field will be saved on server side as an html formate. Is it possible to do so??? or any ruff idea how to design it???Erm ...
Whats the problem with that?!
Ok, here the code ...
String myparameter = request.getParameter("paramname");
String htmltemplate = "<html>\n"
+"<head><title>demo</title></head>\n";
+"<body>@parametertag@</body>\n";
+"<html>";
String htmlpage = htmltemplate.replaceAll("@parametertag@",myparameter);
File yourHTMLfile = new File("wheredoyouwannagotoday.html");
FileOutputStream fos = new FileOutputStream(yourHTMLfile);
fos.write(htmlpage.getBytes());
fos.close();You're done.
Happy Coding! :-) © -
How do I open files from an external drive? It's plugged into the second slot to the end. Did I plug it into the right place and how do I find the drive when trying to attach a file in an email?
Files on an external hard drive open just like files on the internal drive - but I get the idea that you are having a problem just finding and seeing those files. Is that correct?
What operating system is running on your MacBook? -
How can i open file from adobe reader..i already have adobe read
how can i open file from adobe reader..i already have adobe reader installed and cannot open a
file and i cannot convert my file into pdf..Is the file really a PDF? Where is it? Have you tried opening it from within Reader?
-
How do I open files in InDesign CS5.5 CS5?
How do I open files in InDesign CS5.5 CS5?
Hi, are you trying to open up a CS5.5 document in CS5? If so you need to export the docment while in InDesign CS5.5 to the IDML format.
Please refer to this document: http://help.adobe.com/en_US/indesign/cs/using/WSa285fff53dea4f8617383751001ea8cb3f-6d52a.h tml#WSa285fff53dea4f8617383751001ea8cb3f-6d4da -
How can I OPEN files I just downloaded? They're on the DOWNLOADS screen of Firefox but I can't open them even after double-clicking? And they're not on the FOLDERS as well. Even the right-click is not working ... the "open containing folder" does not work.
== This happened ==
Not sure how often
== ALWAYS! ==
== User Agent ==
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)Open Containing Folders is never active.
-
How to upload a file into server using j2ee jsp and servlet with bean?
How to upload a file into server using j2ee jsp and servlet with bean? Please give me the reference or url about how to do that. If related to struts is more suitable.
Anyone help me please!u don't need j2ee and struts to do file uploading. An example is as such
in JSP. u use the <input> file tag like
<input type="file"....>You need a bean to capture the file contents like
class FileUploadObj {
private FormFile srcFile;
private byte[] fileContent;
// all the getter and setter methods
}Then in the servlet, you process the file for uploading
* The following loads the uploaded binary data into a byte Array.
FileUploadObj form = new FileUploadObj();
byte[] byteArr = null;
if (form.signFile != null) {
int filesize = form.srcFile.getFileSize();
byteArr = new byte[filesize];
ByteArrayInputStream bytein = new ByteArrayInputStream (form.srcFile.getFileData());
bytein.read(byteArr);
bytein.close();
form.setFileContent(byteArr);
// Write file content using Writer class into the destination file in the server.
... -
CS6, how do I open files in Bridge directly into Photoshop. The default is File Viewer or there is an option to open in Adobe RAW.
Look at the down pointing arrow to the right of Photoshop CC in the list. Clicking on it shows a list of programs to select from.
Windows OS level or "in Windows" as opposed to "in Bridge".
Gene -
How can I open file; such as create other programme(Dream weaver...etc)?
One of my friend will make website for me soon...(She is not Mac user...I think she will use dream weaver or other tools)
So...I want take that file open in iweb09' is it possible?Imagine iWeb as a database which upon your command creates html files. It's a one-way process. You can generate more html files later but iWeb cannot open them. It only works with the "database" (the domain file).
-
How do I open files made on a Mac on my PC?
How do I open files made on a Mac on my PC? Someone mentioned Platform?
The files should just open. Which Adobe program are you asking about?
-
How to see which files are open on shares
Im fairly new to OS X Server. Am running OS X Server 10.6.8
How can i see files that are open through AFP or SMB? I've tried the command lsof but that doesnt seem to show open files through network.Try smbstatus.
To pin down exactly which files are locked for use, try:
smbstatus | grep -i deny_write
For AFP, I'm not sure exactly how it's done -- there isn't an afpstatus command, so I'm a bit in the dark. However, you could probably use a combination of lsof and grep to find any objects of type REG and owned by applefile.
Maybe this:
sudo lsof | grep -i "^applefile" | grep REG
But that will return everything in use by the AppleFile service. From there, though, one may need to be familiar with what shares are on the system to further deduce what's open. For example, I get 10 lines returned, but only one of them contains a known share name (/Users/username/path/to/file), the rest are system directories (/System, /private, /usr, /Library and the like).
Hope this helps a bit. -
How to see the file at the application server
HI TO ALL SDNERS ,
THIS IS MY CODE WHERE TO CHECK THE DOWNLOADED FILE AT THE APPLICATION SERVER.IN TCODE AL11 I HAVE SEEN THERE IS NO FILE GETTING CREATED.WHEN TRANSFERRING THE SY-SUBRC VALUE IS ZERO.
Program Name : ZME11_BDC.
Title : PURCHASE INFORMATION RECORD LOAD PROGRAM
Program Objective : THIS PROGRAM READS IN THE PURCHASE
INFORMATION FILE. IT CREATES A BDC SESSION TO
USE TO LOAD THE PURCHASE INFORMATION RECORDS
INTO SAP using the ME11 Transaction.
REPORT ZME11_BDC no standard page heading MESSAGE-ID ZHNC line-size 55.
constants declaration
constants: c_x value 'X',
c_sess type apqi-groupid value 'zcustomer',
c_xd01 type tstc-tcode value 'ME11'.
DECLARING VARIABLES
DATA: V_MSG(255),
V_ERREC TYPE I,"NO OF FAILED RECORDS
V_LINES."NO OF RECORDS
FLAG DECLARATIONS
DATA: FG_DATA_EXIST VALUE 'X',"CHECK FOR DATA
FG_SESSION_OPEN VALUE ''.
STRUCTURES AND INTERNAL TABLE DECLARATIONS
TYPES :BEGIN OF TY_PIR,
LIFNR TYPE EINA-LIFNR,
MATNR TYPE EINA-MATNR,
EKORG TYPE EINE-EKORG,
WERKS TYPE EINE-WERKS,
VERKF TYPE EINA-VERKF,"sales person
TELF1 TYPE EINA-TELF1,"telephone
URZLA TYPE EINA-URZLA,"country
REGIO TYPE EINA-REGIO,"region
APLFZ(5),"plan deleivery time
EKGRP TYPE EINE-EKGRP,"purchase group
NORBM(13),
NETPR(13),
END OF TY_PIR.
DATA : IT_PIR TYPE TABLE OF TY_PIR,
WA_PIR LIKE LINE OF IT_PIR.
DATA: BEGIN OF IT_BDCDATA.
INCLUDE STRUCTURE BDCDATA.
DATA END OF IT_BDCDATA.
DATA : BEGIN OF IT_BDCMSG.
INCLUDE STRUCTURE BDCMSGCOLL.
DATA END OF IT_BDCMSG.
SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : FNAME TYPE RLGRAP-FILENAME.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION ON VALUE REQUEST
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FNAME.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
IMPORTING
FILE_NAME = FNAME.
START OF SELECTION
START-OF-SELECTION.
PERFORM F_GET_DATA USING FNAME
CHANGING IT_PIR.
PERFORM F_GENERATE_DATASET USING FNAME
CHANGING IT_PIR WA_PIR.
*& Form F_GET_DATA
text
-->P_V_FNAME text
<--P_IT_PIR text
FORM F_GET_DATA USING P_FNAME LIKE FNAME
CHANGING P_IT_PIR LIKE IT_PIR.
DATA: LV_FILE TYPE STRING.
LV_FILE = FNAME.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = LV_FILE
FILETYPE = 'DAT'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = P_IT_PIR
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF P_IT_PIR IS INITIAL.
FG_DATA_EXIST = ''.
ENDIF.
ENDFORM. " F_GET_DATA
*& Form F_GENERATE_DATASET
text
-->P_V_FNAME text
<--P_IT_PIR text
FORM F_GENERATE_DATASET USING P_V_FNAME LIKE FNAME
CHANGING P_IT_PIR LIKE IT_PIR
P_WA_PIR LIKE WA_PIR.
MESSAGE I001(ZHNC).
*OPENING FILE AT THE APPLICATION SERVER FOR WRITING
OPEN DATASET FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC EQ 0.
MESSAGE I002(ZHNC).
LOOP AT P_IT_PIR INTO P_WA_PIR.
SPLIT P_WA_PIR AT '*' INTO P_WA_PIR-LIFNR
P_WA_PIR-MATNR
P_WA_PIR-EKORG
P_WA_PIR-WERKS
P_WA_PIR-VERKF
P_WA_PIR-TELF1
P_WA_PIR-URZLA
P_WA_PIR-REGIO
P_WA_PIR-APLFZ
P_WA_PIR-EKGRP
P_WA_PIR-NORBM.
*TRANSFER THE FILE FROM INTERNAL TABLE TO APPLICATION SERVER
MESSAGE I003(ZHNC).
TRANSFER P_WA_PIR TO FNAME.
ENDLOOP.
*CLOSING THE FILE AT THE APPLICATION SERVER
CLOSE DATASET FNAME.
ENDIF.Hello,
I made a similar program. You can have a look at it.
*& Form write_to_app_server
text
--> p1 text
<-- p2 text
FORM write_to_app_server.
To get filename
PERFORM get_filename.
To write into the application server
OPEN DATASET g_filename_with_path FOR OUTPUT IN TEXT MODE.
IF sy-subrc = 0.
LOOP AT <l_table> INTO <l_line>.
TRANSFER <l_line> TO g_filename_with_path.
ENDLOOP.
CLOSE DATASET g_filename_with_path.
ELSE.
CLOSE DATASET g_filename_with_path.
ENDIF.
To send mail
PERFORM send_mail.
ENDFORM. " write_to_app_server
*& Form get_filename
text
--> p1 text
<-- p2 text
FORM get_filename.
DATA : l_log_path TYPE filepath-pathintern
VALUE 'Y28M_DOWNLOADS_BACKGROUND' .
CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
EXPORTING
client = sy-mandt
logical_path = l_log_path
operating_system = sy-opsys
file_name = p_fname
IMPORTING
file_name_with_path = g_filename_with_path
EXCEPTIONS
path_not_found = 1
missing_parameter = 2
operating_system_not_found = 3
file_system_not_found = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " get_filename
You may find it useful.
Regards,
Karuna. -
How to download a file from server machine to client machine using jsp
Hi,
In my application, I have an excel file stored on my server machine. How can I download that excel file on to my client machine using jsp. Is there any other way I can open that file from my machine and save it in my machine using jsp/java?
Its an emergency for me to do this.
Can anyone provide me the full code to download a file from server machine as I don't have
time to browse through various sites.
thanks in advance,
TiijnarPlease post your code using code tags (click on CODE above the text area, when posting)
response.setContentType("application/octet-stream");Why octet-stream? Set the correct mime-type.
String disHeader = "Attachment; Filename=\"filename\"";The filename should just be the file's name. Not the complete path to the file! This will tell anyone where the file is located on the server. It's also inconvenient because by default,the browser will suggest it as the name for the download.
Your way of writing to the output stream is just plain wrong. See this snippet (picked from [http://balusc.blogspot.com/2007/07/fileservlet.html])
BufferedInputStream input = null;
BufferedOutputStream output = null;
try {
// Open streams.
input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
// Write file contents to response.
byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
int length;
while ((length = input.read(buffer)) > 0) {
output.write(buffer, 0, length);
// Finalize task.
output.flush();
} finally {
// Gently close streams.
close(output);
close(input);
}
Maybe you are looking for
-
JDev 10.1.3 generates incorrect getter/setter for CMP EJB 3.0 - Please help
Hi, I am using JDev 10.1.3 Production and using the EJB3.0 CMP wizard to generate the code from a MySQL database. No matter what type I specify for my database columns in schema, code generator always generates the properties of type String only. e.g
-
How to see SPACES/network of two macs
I read that we can activate (see?) spaces with F8. I have a MAC BOOK so I think FN and F8. But when i press nothing happens. i am not sure I understand this. I never used shortcuts before so maybe I am missing something. Another thing. I have two Mac
-
Easy DMS 6.00 SP09 - can not logon
Hi Gurus, I am testing Easy DMS SP09 (and SP09 Patch 1), but everytime I want to logon the logon screen disapeers for a few seconds and then appears again and wants me to logon again. When I press the cancle button I get a msg box with "unkown error"
-
Smartform with multiple Headers & Respective Item Details and Totals?
Dear All, Appreciate if anyone clarify my doubt. My requirement is to develop a smartform for billing with multiple headers & respective items and totals. For more clarity I'm explaining below. Header Section1 variable1 v
-
Latitudes and Longitues on a Rendered Sphere.
HI, am relatively new to Java3D.. I have come up with a sphere wrapped with an Blue Marble Image. I'm now trying to draw wires around my globe for Latitudes and Longitudes. But, my code seems to generate a Mesh all around the sphere... But this is cl