Setting file permisions ,group permission on Windows and unix from java

Hi
i am trying to set up file permissions through java on unix and windows operation sysyem
.I don't want to use shell scripts .
thank you for your help.

HI BIJ001,
Thanks for reply.I am paling to use
1)First i am detecting operating system
2)if it is UNIX->calling unix scripts from JAVA
2)if it is WINDOWS ->calling Bat scripts.
But attrib command in windows does not support FIle Gropu permssion like unix(chmod 777 filename).
Do yoou have any experience in .bat sctipts on file permission.
Let me know .Again thank you for reply.

Similar Messages

  • I noticed when I restart Firefox 4, it opens my previous tabs even I set the option "Open a blank page" and it opens blank page when I have "Show my windows and tabs from last time". Please ignore my question if you're already aware of this issue. Thanks.

    I noticed when I restart Firefox 4, it opens my previous tabs even I set the option "Open a blank page" and it opens blank page when I have "Show my windows and tabs from last time". Please ignore my question if you're already aware of this issue. Thanks.

    Your previous tabs will not re-open or be available to re-open when starting Firefox if:
    *your previous session was in Private Browsing mode; see --> http://support.mozilla.org/en-US/kb/Private+Browsing
    *you use Clear Recent History (''Firefox button > History > Clear Recent History'' or ''Tools > Clear Recent History''); see --> https://support.mozilla.org/en-US/kb/Clear%20Recent%20History#w_how-do-i-clear-my-history
    *you clear History automatically when closing Firefox; see --> https://support.mozilla.org/en-US/kb/Clear%20Recent%20History#w_how-do-i-make-firefox-clear-my-history-automatically
    NOTE: Your third-party Plugins (Add-ons > Plugins) are not in the "Application Basics" (Troubleshooting Information) in the "More system details" of your original post. Third-party Plugins are categorized separately in "Installed Plugins" under "More system details". You should review but not change the Plugins as detected automatically by the software on this forum when posting a question.
    If you problem still exists after checking the above, the problem could be caused by one or more of your Extensions or Plugins:
    *See --> [http://support.mozilla.org/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    *See --> [http://support.mozilla.org/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    *See --> [http://support.mozilla.org/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • I installed Identity Finder, and I have to enter a password to get into Firefox, which I like. However, even though my settings are set to "Show my windows and tabs from last time," I have to manually click on each one to add in a new tab each time. An

    I installed a security program called Identity Finder whick requires a master password for Firefox on my laptop, which I like. However, even though my settings are to "Show my windows and tabs from last time," I have to manually add each link in a new tab each time. Any suggestions? Thanks in advance.

    Pure speculation, but maybe that Identity Finder program is deleting your browsing history which is how Firefox restores tabs and windows from the previous session. Check with technical support for that program or look at the manual.

  • "show my windows and tabs from last time" does not work after upgrade to 8.01

    After I upgraded to the latest v8.01 I have lost all my tabbed sites and even when trying to add them and save them with the Tools>Options>General>Start up>when Firefox starts selected feature "show my windows and tabs from last time" it does not hold the saved sites and when browser is restarted it always loses all the tabs and only shows one tab with Firefox home webpage. I need to have several sites open to work and the only way to do that now is to make sure I click the "Use current pages" under General Option in Tools. It is getting very annoying because I keep changing my tabs to different websites during a session and I am used to just closing the browser, relying on having them all back in when restarting Firefox.

    Make sure that you do not use Clear Recent History to clear the <i>Browsing History</i> when you close Firefox.
    *https://support.mozilla.com/kb/Clear+Recent+History
    *https://support.mozilla.com/kb/Firefox+does+not+ask+to+save+tabs+and+windows+on+exit
    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the sessionstore.js [2] file and possible sessionstore-##.js [3] files with a number and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See also:
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js
    * [3] http://kb.mozillazine.org/Multiple_profile_files_created

  • Webutil usage on Windows and Unix clients - Host and Temp dir issues

    Hello,
    I am in the process of writing a Forms application which makes use of WebUtil to handle the uploading and downloading of files, as well as launching the files on the client PCs. The code below is my current 'Launch' program which works great in a Microsoft Windows environment. It gets the TEMP directory location, builds a file name, downloads the file to the TEMP directory and uses the Host command to launch the file.
    PROCEDURE Launch_DB IS
    l_directory varchar2(200) := client_win_api_environment.get_temp_directory(true);
    l_success boolean;
    BEGIN
    :file_block.full_file_name := l_directory || '\' || :file_block.file_name;
    l_success := webutil_file_transfer.DB_To_Client_with_progress
    (clientFile => :file_block.full_file_name
    ,tableName => 'FILES
    ,columnName => 'FILE_DATA'
    ,whereClause => 'ID = ' || :file_block.id
    ,progressTitle => 'Download from Database in progress'
    ,progressSubTitle=> 'Please wait'
    if l_success then
    WEBUTIL_HOST.NONBLOCKING('CMD /C "' || :file_block.full_file_name || '"');
    else
    exception
         when others then
         message('File download failed: '||sqlerrm);
    END;
    My problem is that I've just discovered that there's a new group of users that will want access to these forms, and they're using non-windows machines - mostly Solaris and Linux. As such, I have these problems:
    - " client_win_api_environment.get_temp_directory " is a Microsoft Windows specific function. Is there any way to determine a temporary storage area on a Unix machine?
    - " WEBUTIL_HOST.NONBLOCKING('CMD /C "' || :file_block.full_file_name || '"'); " - CMD is Microsoft Windows specific function. What should I do to launch a file from Unix? (Sorry, my Unix skills are pretty minimal).
    - I'm guessing that I'll need to determine the operating system so that I can use different methods to determine the TEMP dir, and to execute the HOST command. Assuming that Microsoft Windows and Unix variants are the only OS's that I need to provide access to, what is the best way to determine the client environment ( eg. IF UPPER(WebUtil_ClientInfo.Get_Operating_System) like '%WINDOWS%' THEN ... ELSE ... END IF; ) . I only have access to Windows XP for testing so I don't know what values "WebUtil_ClientInfo.Get_Operating_System" will return for any other OS.
    Thanks in advance for any assistance.
    Regards,
    Michael.

    Hi,
    as far as launching the file goes, if teh program that runs the file exist on teh local computer, you can use teh host command in webutil to access teh program and file. CMD is what you use to open teh command line on windows, but the host command is supposed to work on the UNIX client as well.
    For the temp directory, you have two options
    The short term option: Pass the temporary directory name as a user variable to Forms when starting the application. This can be user specific if adding this information to the URL using teh otherparams parameter
    The longterm option: Log a TAR with Oracle customer support to add a function to teh getClientInfo function that retruns the temporary directory for the authenticated user.
    Frank

  • Why does Firefox not open my windows and tabs from last time until I have tried starting 3 or 4 times?

    I have this problem with opening Firefox:
    My Startup options are set to "When Firefox starts: Show my windows and tabs from last time"
    However, each time I start Firefox, by clicking the icon in the Taskbar, it opens with a single blank tab.
    I repeat this using "Open New Window" and when I have up to 3 windows, all with single blank tabs open, I close them all. Once more I use "Open New Window" which only then opens with my windows and tabs from last time.
    Naturally, this induces initial panic each time, because I dread the thought of losing all my current tabs.
    What is going on here?
    How can I fix it?
    < Firefox 27.0.1 with Windows 7 Home Premium.>

    This started happening to me with the upgrade to v30. Previously, new windows did the proper thing of showing previous tabs/windows.
    I have history on, not in private mode, and have cleared cache.

  • System no longer does session restore but when trying to configure, it does not provide me with the option to show windows and tabs from last session

    Before I updated the latest version of Firefox, every time the browser shuts down in error, I would get the System Restore feature which was really nice. Now, this no longer happens and when I went to configure this ability, it does not even provide me with the option to select to show windows and tabs from the last session. How can I get the restore session feature working again?

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.com/kb/Private+Browsing
    *You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    *To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Deselect: [ ] "Permanent Private Browsing mode"
    * http://kb.mozillazine.org/Session_Restore
    * https://support.mozilla.com/kb/Session+Restore

  • Why is the "Show my windows and tabs from last time) option in Options- General is grayed out and will not let me restore previous sessions?

    After updating to Firefox 6, the option in the Options-> General section to "Show my windows and tabs form last time" is grayed out and will not allow me to set it. If I go to the Firefox homepage, the option does not appear, nor does it appear if I go under the History or Firefox tab.
    I tried to follow the directions on this website on the Session Restore page, but that seems out of date or just not helping.
    I even went to the about:config (about:session restore does not work) and there was nothing I saw that would work

    Firefox 6 seems to change your settings in Tools Options Privacy to "Never remember history". Once you change this to "Remember history" it will restore your previous session, as long as the setting in Tools Options General Startup is set to "Show my windows and tabls from last time"
    Bad idea Mozilla - installing 6 should pick up your settings from 5. This problem will confuse many users.

  • String.getBytes (java) o/p different in Windows and Unix

    Hi,
    I was trying out the following code, which gives me a byte array from a
    String object.
    byte[] bytArr = null;
    bytArr = <String object>.getBytes("UnicodeBigUnmarked");
    System.out.println(bytArr.toString());
    The output is different in Windows and in Unix. The assumed that the reason could be because Intel architecture is based on little_endian so the difference in output. I changed the code to the following
    bytArr = <String object>.getBytes("ISO8859_1");
    and then ran the class file by using "java -Dfile.encoding=ISO8859_1" so that the toString can also take the character encoding of ISO8859_1 rather than using the platform dependent one. Still the result is different in Windows and Unix.
    What could be the reason for this? How can I correct this ? Any help in this regard is welcome.
    cheers
    kk

    Hi Sabre150,
    Thanks for the suggestion, it worked. Both the o/p shows the same if I use System.out.println(Arrays.toString(bytArr));
    I am assigning full points to you. Thanks a ton for the help.
    To end with I have one more question, the method Arrays.toString is introduced from jdk1.5, so if I want to use jdk 1.4 what should I use instead of Arrays.toString ?
    It would be great if I can get this answer.
    cheers
    kk

  • Compiling reports6i on Windows and Unix

    Hi Friends,
    I'm compiling reports6i on windows by opening the browser window online. But to my confusion when I run and save the report program, I only see the .rdf extension of the file. I just thought the executable version is .rep , so I thought I will see also this file type. My question is can the report program run without the .rep extension file?
    Thanks

    Thanks Hussein,
    But I got this script from metalink > How to compile reports on windows and unix in batch mode:
    For Windows Reports 6i
    ===============
    REM WINDOWS COMPILE REPORT
    ::compile_report.bat
    cls
    Echo compiling Report .....
    for %%f IN (*.rdf) do RWCON60 userid=scott/tiger@v817 batch=yes source=%%f
    stype=rdffile DTYPE=REPFILE OVERWRITE=yes logfile=log.txt
    ECHO FINISHED COMPILING
    For Unix Reports 6i
    ============
    #UNIX COMPILE REPORTS
    #compile_rep.sh
    for i in `ls *.rdf`
    do
    echo Compiling Report $i ...
    rwcon60 userid=scott/tiger@bs817 batch=yes source=$i stype=rdffile
    dtype=repfile overwrite=yes compile_all=yes
    done
    =======
    I'm only concern with the unix output....is it ok if I have both file extensions? (.rdf and .rep)
    Another concern is are the program name case-sensitive? I know unix is case-sensitive unlike windows.
    So if I have a program name APXDCDFO.RDF , is it the same with
    APXDCDFO.rdf or
    apxdcdfo.RDF or
    apxdcdfo.rdf
    Thanks a lot

  • Why doesn't firefox save my windows and tabs from last time ?

    i have gone to tools, options, then under the general tab i set firefox to start up : I set show my windows and tabs from last time.
    When i closed firefox and then started it again it didn't work.
    What can be done to resolve this issue please?

    Make sure that you do not use "Clear Recent History" to clear the "Browsing History" when Firefox is closed because that prevails and prevents Firefox from opening tabs from the previous session.
    * https://support.mozilla.com/kb/Clear+Recent+History
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js
    * [3] http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox
    If you use cleanup software like CCleaner then make sure that Session is unchecked in the settings for the Firefox application.

  • How to find cd rom drive in windows and unix platform using java program

    Hi,
    I am having the requirement of finding the cd rom drive
    using java program. I do not know the label and which
    one is the cd rom drive. also I want to know how many
    cd rom drives are there on my system. I want the solution
    for windows and unix platforms.
    If have any suggestions please mail to [email protected]
    Deepak

    Ughhh.. I had the same problem with multi platform file-system detection
    First off - Unix.
    Do you know for sure you have all your drives mounted?? This could be a big problem because java will not see unmounted drives... So you can scour thru your /etc/fstab to find out which drives are available... or you can mount all and show roots... (Yuck!)... You've got timeouts and all sorts of things to worry about...
    I would then shy away from the java.io.File.listRoots() on unix and rely on parsing your fs file. If a user would like to see the medium in the drive. Do a Runtime.exec and mount the drive, then you can grab the filesystem by wrapping it in the java.io.File object. ( NOTE - this will hold well for your NFS mounts as well which might be buried under other FS. So you now have detection for that as well. ) Labels are also noted in this file. Let me know if you don't know the difference between mtab and fstab....
    Second - Winders.... Corney but I love saying that.
    The listRoots is a good solution. As others have said CD-ROMS will not be writable. Use a combination of getName and getPath to decipher the label and mount point.
    Hope this helps!

  • Is there a command-line option that will override the "show my windows and tabs from last time"?

    A friend of mine occasionally runs into a web page that causes him problems. To be sure, he should note the URL and submit a bug report if a page causes a browser crash, but in any case, while by default he likes the browser to restore windows and tabs from the previous session, in the case of an obnoxious web page, you *don't* want that to happen. I'm hoping that I can set up an icon for him to click on that will start the browser up on his home page instead of restoring previous windows and tabs when he gets into trouble.

    Set the Integer pref browser.sessionstore.max_resumed_crashes to 0 on the about:config page to get the about:sessionrestore page immediately with the first restart after a crash has occurred or the Task Manager was used to close Firefox.
    * http://kb.mozillazine.org/browser.sessionstore.max_resumed_crashes
    That will allow you to deselect the tab(s) that you do not want to reopen, but will allow to reopen other tabs.
    See:
    * http://kb.mozillazine.org/Session_Restore#Restoring_a_session_after_a_crash
    * http://kb.mozillazine.org/Browser.sessionstore.max_resumed_crashes

  • What is wrong? The "show my windows and tabs from last time" has not been working these past two or three days. It was fine before. Ive changed nothing except the last update from you. Thank you.

    What is wrong? The "show my windows and tabs from last time" has not been working these past two or three days. It was fine before. Ive changed nothing except the last update from you. Thank you.

    Make sure that you do not use "Clear Recent History" to clear the "Browsing History" when Firefox is closed because that prevails and prevents Firefox from opening tabs from the previous session.
    * https://support.mozilla.com/kb/Clear+Recent+History
    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/Session_Restore
    * http://kb.mozillazine.org/sessionstore.js
    If you use cleanup software like CCleaner then make sure that Session is unchecked in the settings for the Firefox application.

  • In options, the selection for "use my windows and tabs from yesterday" is Dimmed I want to know why?

    I cannot set , in options, use my window and tabs from yesterday, because it is dimmed! I haven't been able to find why it would be dimmed.
    I keep 5 tabs open all the time & it is becoming a pain to have to reset them all from bookmarks every time firefox is closed & reopened. just because I cannot set it to do that in options, because the selection is dimmed in options

    Because you probably are using private navigation, go to Tool >>Privacy >>in the option Firefox will: change to Remember History, now you can change that option "When Firefox Start" to "Show my windows and tabs from last time"
    *[https://support.mozilla.org/en-US/kb/startup-home-page-download-settings Startup Page]

Maybe you are looking for

  • T60 power gauge problem

    Dear all, I use a T60 and there's a problem from last morning. The battery status in taskbar turned to white icon and with a short thin line in it when I powered on the laptop yesterday. When I move mouse cursor onto the icon the message "battries no

  • Authorization error in posting IDoc

    Hi, I have completed configuration of File to IDoc scenario. When File adapter has picked up the file from FTP server, the message is processed with outbound error. To find out the error occured at the outbound side, I ran the transaction 'SM58' whic

  • EJB adapter configured in Jdev is not reflecting in Oracle BPM References

    Hi All, I have configured an EJB service adapter in Oracle Jdeveloper in external references swim lane to call it from Oracle BPM workflow/process. But, that is not getting reflected in Oracle BPM process "References(folder)" in Business catalog. I d

  • Exif Data in pages

    Hello all, Does anyone know if it's possible to automatically include EXIF data (like, lens type, camera model...) in Master pages or in pages? If yes, please tell me how. I need to print a book with technical shooting data and possibly, I want them

  • Urgent New Dimension to be added

    Hi All, i have to add new dimension to the existing cube using EIS 7.1.2 and SQL server 2005 IncludeInReport Member Names NoCloseClaims CloseClaims IncludeInReport itself is a column and it is having only 0's and 1's. and they had given specification