How to execute a command on UNIX?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to execute a command on UNIX?
# 1  
Old 05-30-2009
How to execute a command on UNIX?

Hi guys,
I'm completely new to UNIX and Linux and all that stuff. I've been using webhosting (shared) for some time years now and recently I've wanted to carry out some tasks that have had some commands which are not familiar to me. One was to install Mailman and the other to copy files from one server to another. I searched for ways to do the latter and got this:
Code:
$ scp source/file.c remoteuser@remoteaddr:remote/dir
$ scp -r remoteuser@remoteaddr:remote/dir ~/tmp

which means nothing to me. I assume that it's a command relating to UNIX and I have no idea how to execute such things. I am used to programming having written plenty of PHP and some client-side languages (not professionally), but this is like nothing I've ever seen.
If this is not UNIX related, I apologise, please correct me. If it is, how might I go about running such a command?
I've searched a bit but nothing much useful seems to come up. If it's helpful, my server says it's "UNIX Type: L8".

Thanks for your time,
Ben
# 2  
Old 05-30-2009
with is a secure copy command.
going from one server to another.

on command line type:
Code:
man scp

# 3  
Old 05-31-2009
That's great thanks, but where is the command line? In the FTP program? It doesn't seem to accept it: "500 MAN not understood". Sorry but I'm very much a beginner to this thing.

Thanks,
Ben
# 4  
Old 05-31-2009
If your Linux flavor has a menu there's probably a command "Terminal" on it; that's what is meant by "command line". For me it's Applications -> Accessories -> Terminal.

Alternately, press Alt + F2, type "sh", click "Run in terminal", then click "Run".
# 5  
Old 06-01-2009
Quote:
Originally Posted by BenA
Hi guys,
I'm completely new to UNIX and Linux and all that stuff. I've been using webhosting (shared) for some time years now and recently I've wanted to carry out some tasks that have had some commands which are not familiar to me. One was to install Mailman and the other to copy files from one server to another. I searched for ways to do the latter and got this:
Code:
$ scp source/file.c remoteuser@remoteaddr:remote/dir
$ scp -r remoteuser@remoteaddr:remote/dir ~/tmp

which means nothing to me. I assume that it's a command relating to UNIX and I have no idea how to execute such things. I am used to programming having written plenty of PHP and some client-side languages (not professionally), but this is like nothing I've ever seen.
If this is not UNIX related, I apologise, please correct me. If it is, how might I go about running such a command?
I've searched a bit but nothing much useful seems to come up. If it's helpful, my server says it's "UNIX Type: L8".

Thanks for your time,
Ben
Heyo, Ben, what you found is scp - secure copy over networks. remoteaddr is the server, remoteusr is the user you login as, after colon (":") there is the path, the tilda ("~") is for the user's home directory, "~/tmp" is the "tmp" subdirectory in the user's home directory. To your UNIX - if you can star a terminal, try to type in "uname -a" and press Enter, then copy and past it here so we can know exactly what kind of UNIX do you use. Any details about your UNIX, how does it look like, programms, maybe screenshots and so on can be helpful.
# 6  
Old 06-01-2009
Quote:
Originally Posted by Action
Heyo, Ben, what you found is scp - secure copy over networks. remoteaddr is the server, remoteusr is the user you login as, after colon (":") there is the path, the tilda ("~") is for the user's home directory, "~/tmp" is the "tmp" subdirectory in the user's home directory. To your UNIX - if you can star a terminal, try to type in "uname -a" and press Enter, then copy and past it here so we can know exactly what kind of UNIX do you use. Any details about your UNIX, how does it look like, programms, maybe screenshots and so on can be helpful.
Thanks, I'm running Windows on my PC here but the server is running UNIX. To be honest, I'm not sure what a terminal is. Like I mentioned I have a shared hosting package and when I type the command SYST into my FTP program, which I assume must send its requests to the server, it responds telling me it's running UNIX, Type: L8. I'm not sure how I might execute these commands or get into where I need to, or if that's even possible in this situation? If it's of any help I'm using Wise-FTP 5. It doesn't seem to recognise the commands I'm typing in to the manual command dialogue box.

Thanks for your help,
Ben
# 7  
Old 06-02-2009
Quote:
Originally Posted by BenA
Thanks, I'm running Windows on my PC here but the server is running UNIX. To be honest, I'm not sure what a terminal is. Like I mentioned I have a shared hosting package and when I type the command SYST into my FTP program, which I assume must send its requests to the server, it responds telling me it's running UNIX, Type: L8. I'm not sure how I might execute these commands or get into where I need to, or if that's even possible in this situation? If it's of any help I'm using Wise-FTP 5. It doesn't seem to recognise the commands I'm typing in to the manual command dialogue box.

Thanks for your help,
Ben


Hello Ben,
I took a look on Shared web hosting service - Wikipedia, the free encyclopedia. It can be that ssh/scp are not available in your case, only ftp and http. If it is really so you have to copy everything over ftp, probably from the first server to your local machine and then from your local machnie to the second server. Did you install Mailman on the UNIX L8 system or on your local Windows system? Can I ask what servers are that, what hosting?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to execute previous command in UNIX?

Hi, I was able to use !! on the console. But when I used !! in the run.sh, it says something like command not found. (3 Replies)
Discussion started by: alvinoo
3 Replies

2. UNIX for Dummies Questions & Answers

Execute a command in different directory through Unix Script

Hi Gurus, I have the below requirement, Execute an unix script which will pick the latest file from the archive directory and do a grep (on multiple patterns) on that file. processingDir="/usr/apps/irdc/informatica/spsf_sales/TgtFiles/ARCHIVE" filename = 'ls Check* | sort -n -k 2 |... (6 Replies)
Discussion started by: diva_thilak
6 Replies

3. Shell Programming and Scripting

Cannot execute Unix command in a simple perl script

Am trying to lean perl scripting in Unix OS to automate my tasks. Please find the below perl script i have tried #!/usr/bin/perl -w print "Please Enter the VG name to be checked:"; $A = <>; print "Please Enter the free size to be checked in GB:"; $B = <>; $vgcheck = `vgdisplay... (7 Replies)
Discussion started by: jayachandran87
7 Replies

4. Shell Programming and Scripting

How to execute PMCMD command in Unix?

Hi All, I am trying to run the PMCMD commend to execute the informatica workflow but while executing from my home directory i am getting below error ksh: pmcmd: not found I executed from my server/bin directory too. I am getting the same error. My commend is: pmcmd startworkflow -sv... (3 Replies)
Discussion started by: kannansr621
3 Replies

5. Shell Programming and Scripting

Execute a unix command

Hi, Please suggest me to execute unix command. Input : 2011-01-01 00:00:00 Required output : 20110101000000 YYYYMMDDHH24MISS Regards Akshu (4 Replies)
Discussion started by: akshu.agni
4 Replies

6. Shell Programming and Scripting

Execute unix command from an html page in windows

i have a problem situation, where i have a html file say click.html. i have a button "ls" in that html page. i run this html file in windows....Now say if i click that "ls" button it must connect to the unix server and execute ls and return the results back to html page in windows. can anyone tell... (8 Replies)
Discussion started by: niteesh_!7
8 Replies

7. Shell Programming and Scripting

Net::SSH::Perl->Execute any unix command & display the output in a proper form

Net::SSH::Perl ...... how to print the output in a proper format my $cmd = "ls -l"; my $ssh = Net::SSH::Perl->new($host); $ssh->login($user, $pass); my($stdout, $stderr, $exit) = $ssh->cmd("$cmd"); print $stdout; the script works fine, but i am unable to see the output... (2 Replies)
Discussion started by: gsprasanna
2 Replies

8. Programming

execute unix command from java eclips

Hi all, I tried to execute the command by 2 ways : 1) Java Runtime class exec method - but the problem there is that it only can execute scripts without arguments(I need with args) 2) the Jtux classs Uprocess- the problem it is not supported by windows and my eclips platform is on... (0 Replies)
Discussion started by: katzs500
0 Replies

9. Shell Programming and Scripting

To execute next UNIX command after ending SFTP process.

Hi, I am trying to run a simple UNIX command after i successfully executed SFTP command as shown below. ----------------------------------------- echo 'Step-1' sftp -vvv -b path exit echo 'Step-2' ------------------------------------------ In above script it executes from the 1st... (3 Replies)
Discussion started by: gautamc
3 Replies

10. Shell Programming and Scripting

execute command unix with java:possible or not?

hi everybody, i have a small unix script and i want to use it with java, so how can i executte unix command with java (if it is possible): in fact i want to use some values returned by this script with java swings. is it possible (of course everything is possible) but how can i do? thank you in... (4 Replies)
Discussion started by: mips
4 Replies
Login or Register to Ask a Question