Search Results

Search: Posts Made By: Jose Miguel
11,978
Posted By Jose Miguel
FTP Unix Box to Windows Shell Script
Hello All,

Could someone help me out with this? I want to incorporate this into an existing script so the output of a SAS job can be ftp'd from our UNIX box to a directory on a drive in Windows...
2,511
Posted By Jose Miguel
Thanks, completely forgot about that!!
Thanks, completely forgot about that!!
2,511
Posted By Jose Miguel
File exists with Permissions
Hello All,

I wrote the following script that identifies when a file is created:

file1=/path/1
file2=/path/2

while true
do
if [[ -a $file1 && -a $file2 ]]; then
echo "$file1 and...
6,931
Posted By Jose Miguel
Quick question then. Why doesn't this code work?...
Quick question then. Why doesn't this code work? It keeps giving me a syntax error:

";" unexpected

Can this instance of the if statement only validate two conditions about the same file, and...
6,931
Posted By Jose Miguel
Thank you. I'm assuming that until [[ -a...
Thank you. I'm assuming that

until [[ -a "${file}" ]]

will keep looping until it finds all files in required_files? Also, I'm guessing the rest of the code comes after the loops (after the...
6,931
Posted By Jose Miguel
Excellent! I guess if I want it to validate if...
Excellent! I guess if I want it to validate if more than one file exists I would do the following:

myfile=/path/to/file
myfile2=/path/to/second/file

while true
do
if [[ -a $myfile && -a...
6,931
Posted By Jose Miguel
Continue Script when File Found
Hello All,

I am trying to write a script that will only continue executing my script if a file exits. I know the directory of the file, so its just a matter of seeing if the file exists yet. If...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 01:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy