10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Here is my problem::confused:
Daily my ETL process will create 4 (Four) Flatfiles in unix box. Upon creation of the flatfiles, I need to do "SFTP" the files to a "Remote Server".
Sometimes While doing SFTP, the files get trucated due to it's size.
Now I would like to design a Korn... (3 Replies)
Discussion started by: npk2210
3 Replies
2. Red Hat
Hello i tryed add SunOS system to Spacewalk and see this error:
# cat /etc/release
Solaris 10 10/08 s10s_u6wos_07b SPARC
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
... (1 Reply)
Discussion started by: jess_t03
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Whenever I run crontab -e from my remote terminal logged onto a SunOS 5.6 machine I get this:
root@beauvert:~> crontab -e
3495
-----
I think I have to set the terminal/editor. These are my environment variables:
root@beauvert:~> set
EDITOR vi
PATH ... (5 Replies)
Discussion started by: mojoman
5 Replies
4. Shell Programming and Scripting
Hi,
Can someone tell me why the "LargeFile" is coming first before the smaller files. Is there any way to list the files based on size column.
ls -g| sort -k 4
-rw-r--r-- 1 user 6117910528 Apr 28 15:04 LargeFile
-rw-r--r-- 1 user 6136832 May 30 07:23 my_20080530.tar
-rw-r--r-- ... (2 Replies)
Discussion started by: kesari
2 Replies
5. UNIX for Dummies Questions & Answers
Hello All,
I have an issue with sftp in BatchMode option. I am using the below command to sftp a file in ssh2 from a script.
sftp -o BatchMode=yes userid@servername <<EOF
cd /ftp/cds
put quotes.csv
quit
EOF
But the connection doesnt returns back from sftp and it just hangs in the... (3 Replies)
Discussion started by: kotasateesh
3 Replies
6. Shell Programming and Scripting
Hello All,
I have a issue with the below script that i am using to sftp a file.
sftp -o BatchMode=yes $sftpLogin <<EOF
cd /ftp/cds
get cdstesting.csv
quit
EOF
When i use this, the connetion establishes and the connections doesnt returns from and hangs in the connecting mode. I think... (0 Replies)
Discussion started by: kotasateesh
0 Replies
7. Shell Programming and Scripting
Hi,
I have a folder ABC.
I have sftp executing from this folder successfully to other servers using keys which avoids passowrd prompt.
The permissions for the folder are only for user.ie drwx------
But i need another id to access my folder and execute the scripts.
So i changed the access... (2 Replies)
Discussion started by: borncrazy
2 Replies
8. Solaris
In Solaris (SunOS 5.9) a problem is encountered as :
The patch command doesnt patch a file greater than or equal to 1MB after it is deleted or changed.
Could anyone know the reason. Is this problem related to patch or Sun OS. If so what may be the solution. (3 Replies)
Discussion started by: SankarV
3 Replies
9. UNIX for Advanced & Expert Users
I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies
10. UNIX for Advanced & Expert Users
Hi,
I have been facing a telnet problem with our SunOS 5.7 box. Initially we were facing porblems in login both from the console as well as through telnet. The machine was hard-booted after which login from console is possible, but telnet connection is not.
The error that is displayed is... (1 Reply)
Discussion started by: manoj_gopal
1 Replies
SSH2_SFTP_LSTAT(3) 1 SSH2_SFTP_LSTAT(3)
ssh2_sftp_lstat - Stat a symbolic link
SYNOPSIS
array ssh2_sftp_lstat (resource $sftp, string $path)
DESCRIPTION
Stats a symbolic link on the remote filesystem without following the link.
This function is similar to using the lstat(3) function with the ssh2.sftp:// wrapper in PHP 5 and returns the same values.
PARAMETERS
o $sftp
-
o $path
- Path to the remote symbolic link.
RETURN VALUES
See the documentation for stat(3) for details on the values which may be returned.
EXAMPLES
Example #1
Stating a symbolic link via SFTP
<?php
$connection = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');
$sftp = ssh2_sftp($connection);
$statinfo = ssh2_sftp_lstat($sftp, '/path/to/symlink');
$filesize = $statinfo['size'];
$group = $statinfo['gid'];
$owner = $statinfo['uid'];
$atime = $statinfo['atime'];
$mtime = $statinfo['mtime'];
$mode = $statinfo['mode'];
?>
SEE ALSO
ssh2_sftp_stat(3), lstat(3), stat(3).
PHP Documentation Group SSH2_SFTP_LSTAT(3)