10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I need to track what commands run in login session in solaris whether it is root or any normal users in bash shell.
My actual requirement is that when a user (nomal/root) login into the system, whatever commands he run, it should log into file on specified path . I don't require command... (4 Replies)
Discussion started by: hb00
4 Replies
2. Shell Programming and Scripting
Hi All , I want to use pipe in ftp session . Please let me know if there is any possibility
I have done FTP to a remote host with proper username and password
Now I want to take the latest file in a directory . The below is not workinf
ftp> ls -lrt |... (4 Replies)
Discussion started by: Sandeep Lade
4 Replies
3. Shell Programming and Scripting
Hello
In the shell script we have a FTP command like below
ftp -n -v -q winftp.principal.com >/infa/datafiles/GRP/Scripts/ftp_from_infa_dvcn.log<<END_SCRIPT
quote USER $FTP_USER
quote PASS $FTP_PASS
ascii
lcd $FTP_LOCALDIR
cd $FTP_FLDR
put $FTP_FILE
bye
exit
If i... (1 Reply)
Discussion started by: Pratik4891
1 Replies
4. Shell Programming and Scripting
I have a file as follows:
cat /etc/mxg/ssh-hostsmx.example1.com.au:2225
mx2.example2.com.au:2225
mx.example3.com.au:2225
mail.example4.com.au:2225
mail.example5.org.au:2225
mail.example6.com.au:2225I want to dynamically create aliases for quick access to these servers from bash. I wrote... (4 Replies)
Discussion started by: jelloir
4 Replies
5. Shell Programming and Scripting
Hi,
I want to run these two commands one after the other.
awk 'BEGIN {OFS="\t"} {print $2}'
sort -u
rather than typing awk 'BEGIN {OFS="\t"} {print $2}' file1 > file2, then sort -u file2 > file3. Is it possible to run both commands on file1 then get output file3?
Its kinda hard for... (5 Replies)
Discussion started by: kylle345
5 Replies
6. UNIX for Dummies Questions & Answers
In FTP session, how could know the present working directory in local machine? pwd command gives the present working directory for remote machine only. (2 Replies)
Discussion started by: siba.s.nayak
2 Replies
7. UNIX for Advanced & Expert Users
Hi,
Iam trying to code in java and wanted to run the commands in the Unix remote servers. I have the following code to run multiple GREP commands in a single session.
But when i execute this, the first command executes successfully, whereas from the next line it says
"Exception Occured... (1 Reply)
Discussion started by: gravi2020
1 Replies
8. Shell Programming and Scripting
Hi
I am trying rename multiple files in a remote location by connecting through FTP. How do i do this? I get error as for is not FTP command. I looked the FAQ for scripting but it is doesnt relate to my post.
Please help. Thanks
ftp -in >Error.log <<!
open $HOST
user $User $Pwd
for... (2 Replies)
Discussion started by: appsguy616
2 Replies
9. Shell Programming and Scripting
Is there any command which displays date while i am in a ftp session?
I tried the date command, but in vain
ftp> date
?Invalid command
ftp>
Can someone please help me. Thanks (2 Replies)
Discussion started by: vivek_damodaran
2 Replies
10. UNIX for Dummies Questions & Answers
I have written a script to ftp a file from Unix to an NT machine to authenticate ftp login I have added the information into the .netrc file when logged in using ftp the commands are not executed. Does anybody know how to make the command execute once username and password have been provided using... (2 Replies)
Discussion started by: hesmas
2 Replies