• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

file path problem, please help! thxxxxxx

R

raybristol

Guest
I need to read a file in path '/tmp/filename', I am using jsp, which uploaded by plesk interface, as my jsp file is in different directory, I am new to Linux, so I wonder what is the correct path to call that file?

Many thanks!
ray
 
assuming you are talking relative to your domain, it would be
./tmp/filename
I know it is hard to see, but you start with a dot (.) for current directory and then relative from there.
 
thanks very much for your reply, but '/tmp' is not under my domain path, when I login to live server using SSH as root, I can go to fold '/tmp' by using command 'cd "/tmp" '.

so what is the correct path to call in my jsp page, I try to call it by directly using path '/tmp/filename', but it doesn't seems working.


Many thanks!
 
Back
Top