Hello,
I'm facing a big problem with my hosting server (Dual Xeon 2.4GHz), I'm having a load in the CPU usage and the memory (maybe it's related) ALSO mySQL:
Server Load 5.34 (2 cpus) (to 22 sometime)
Memory Used 68.4 % (to 70% sometime)
When I go to 'CPU/Memory/MySQL Usage' I found:
... (3 Replies)
I have automated an ftp process that FTP's files from one UNIX box to another in the following format:
ftp -n -v $REMOTE_SERV << EOF
user $FTP_USER $FTP_PASS
cd $REMOTE_PATH
put $CUR_NAME $NEW_NAME
bye
But how can I accomplish this SFTPing from a UNIX box to a LINUX box?
I've seen... (4 Replies)
Hi all,
Can anyone help ...on how to ensure that a file is locked .
thanks & regards,
Soodoo
----------------------------------------
Problem description: -
We usually use the mv command in scripts to make sure that a file is complete and not being written to by another process.
... (1 Reply)
I am trying to work out if it is possible to create a generic scrip which will allow sftp to be run for connecting to a host machine based on a parameter and to retrieve files based on a batch file. The batch file bit I am fine with, I can make that work. The are I'm not so sure about is how to... (1 Reply)
Hi Guys,
I have a program that runs but now everytime the user tries to do chown userid:groupid it fails with operation not permit.
I do have root access to the server. How do I grant the user chown priviledge?
Please Help !!!!!!!!!!!!!
Thanks in advance... (2 Replies)
I'm using RedHat Linux 6.1 and wanted to create an user account with only access to single directory. Have followed all the steps from below link and still user is not able to login:
How to Setup Chroot SFTP in Linux (Allow Only SFTP, not SSH) (link removed)
While the other users, which... (10 Replies)
Hi Team,
How to get the file creation date and time in SFTP server
we can able to type ls -ltr command only SFTP server.
Generally we type ls --full-time test.txt we will get the date and time , same way how to do in SFTP server after connected.
Thanks (1 Reply)
Hi Team,
Could you please let me know ,how to find the file creation date time in SFTP server.
i tred like , ls -ltr command only availble and not available like ls --full-time test.txt
please help?
Thanks (7 Replies)
I have built a website and I can access and edit the website'files on server via the root user. The current file and directory structures are not changeable. Now I am hiring a webpage designer to help me re-design some pages, I am going to let the designer edit the files directly on the server. So... (5 Replies)
Discussion started by: uwo-g-xw
5 Replies
LEARN ABOUT PHP
ssh2_sftp_mkdir
SSH2_SFTP_MKDIR(3) 1 SSH2_SFTP_MKDIR(3)ssh2_sftp_mkdir - Create a directorySYNOPSIS
bool ssh2_sftp_mkdir (resource $sftp, string $dirname, [int $mode = 0777], [bool $recursive = false])
DESCRIPTION
Creates a directory on the remote file server with permissions set to $mode.
This function is similar to using mkdir(3) with the ssh2.sftp:// wrapper.
PARAMETERS
o $sftp
- An SSH2 SFTP resource opened by ssh2_sftp(3).
o $dirname
- Path of the new directory.
o $mode
- Permissions on the new directory.
o $recursive
- If $recursive is TRUE any parent directories required for $dirname will be automatically created as well.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Creating a directory on a remote server
<?php
$connection = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');
$sftp = ssh2_sftp($connection);
ssh2_sftp_mkdir($sftp, '/home/username/newdir');
/* Or: mkdir("ssh2.sftp://$sftp/home/username/newdir"); */
?>
SEE ALSO mkdir(3), ssh2_sftp_rmdir(3).
PHP Documentation Group SSH2_SFTP_MKDIR(3)