Search Results

Search: Posts Made By: CharlesKirk
5,185
Posted By CharlesKirk
Shell Script from PHP not able to cp or mv or anything
Hi there,

For some reason my maintenance mode shell script is not working. Both shell scripts are chmod +x'd, and owned by apache, running from php using exec(), maintenance.html and...
7,558
Posted By CharlesKirk
Sorry, I don't fully understand that. I know I'm...
Sorry, I don't fully understand that. I know I'm coming across as wanting to be spoonfed :(

What do you mean by the shell will expand into more than $4? how do you 'shift off'? I understand $@ is...
7,558
Posted By CharlesKirk
Okay, I understand now. My code is now:...
Okay, I understand now.

My code is now: #/bin/bash

echo "Running command: ncftpput -R -u "$2" -p "$3" "$1" "$5" "$4""
ncftpput -R -u "$2" -p "$3" "$1" $5 $4


./ftpWebsite.sh '1.2.3.4'...
7,558
Posted By CharlesKirk
Erm, sorry I'm unexperienced with shell...
Erm, sorry I'm unexperienced with shell scripting. I thought that would evaluate it, then the single quotes remained to make sure the password was accepted and didn't escape the command...
7,558
Posted By CharlesKirk
Basically I've got a bit further: I now have...
Basically I've got a bit further:

I now have #/bin/bash

echo "Running command: ncftpput -R -u "$2" -p '"$3"' "$1" "$5" "$4""
ncftpput -R -u "$2" -p '"$3"' "$1" "$5" "$4"

When I run it like...
7,558
Posted By CharlesKirk
Brilliant, thanks, it is running the command...
Brilliant, thanks, it is running the command properly now, but ncftpput is erroring because of the username/password. I think this is because the password has .! in it, unfortunately I can't change...
7,558
Posted By CharlesKirk
Argument Problems with ncftpput
Hi there,

I'm having a problem with a shell script designed to FTP a folder across to a new server. I would appreciate any advice on how to get this working.

My current script is:

#/bin/bash...
Showing results 1 to 7 of 7

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