Find the answer to your Linux question:
Results 1 to 2 of 2
Hi there. I am in need of a way to check that the same file exists within two different directories using a filename as a variable. Here is the process ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    9

    Filename to variable

    Hi there.

    I am in need of a way to check that the same file exists within two different directories using a filename as a variable.

    Here is the process which requires it:

    The script is reaches out (via ftp) and pulls down a file(s) and delete it afterwards. This is halfhazard because in the instance it doesnt pull down the file, yet still deletes it, we are up a creek. I am looking to pull it down to a temp location and then verify that file exists in the location in which it needs to be present to process before deleting it, adding a little extra layer for security.

    The script itself is finished. If I put a file name in manually it works perfect. I just need a way to pump the filename into the variable.

  2. #2
    Just Joined!
    Join Date
    Feb 2009
    Posts
    9
    Anyone know how to grab a filename and turn it into a variable?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...