Execution of command at command prompt


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Execution of command at command prompt
# 1  
Old 08-27-2014
Execution of command at command prompt

Hello Experts,

I am still learning linux and have come across a question, hope to get some answer.

I have two servers, and both have the same version of svn client installed and both have the same user_id.

my SVN client version:
Code:
svn, version 1.6.11 (r934486)
   compiled Mar  2 2011, 09:33:58

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme

on one server when I just type svn ---version at command prompt, it provides me with the above o/p and
on the other server it gives me
-ksh: cd: bad substitution
however if i do the same command in the below format, I get the same answer as the 1st server.

Code:
/usr/bin/svn --version

Can some one tell me what needs to be done on 2nd server in order to have the just the "SVN" command issued.

Appreciate the help.
# 2  
Old 08-27-2014
Your administrator may have set an alias on svn -- to enable some default options or prevent you from using it in certain ways -- which is misbehaving when given an option they didn't expect. The full path to the command would circumvent an alias.

Try alias for a list of all aliases and what they do.
# 3  
Old 08-27-2014
Quote:
Originally Posted by Corona688
Your administrator may have set an alias on svn -- to enable some default options or prevent you from using it in certain ways -- which is misbehaving when given an option they didn't expect. The full path to the command would circumvent an alias.

Try alias for a list of all aliases and what they do.
Hello Corona,

Can you elaborate on what you mean by listing the 'alias', i tried and on the 1st server as well i don't see any 'alias' set for svn.
# 4  
Old 08-27-2014
By alias I mean typing alias and hitting enter.

What do you get on the other server?
# 5  
Old 08-27-2014
RedHat

Quote:
Originally Posted by Corona688
By alias I mean typing alias and hitting enter.

What do you get on the other server?
I get a bunch of alias commands that I have set in my profile for the user and some other that are set by admin i guess,
for example:
Code:
nohup='nohup '
lh='ls -ltrah'
hash='alias -t --'
history='hist -l'
integer='typeset -li'
.
.
.etc.....

I don't see anything related to SVN in alias output on both servers.

---------- Post updated at 03:38 PM ---------- Previous update was at 01:20 PM ----------

I figured what the issue was, on the second server for this particular user_id there was an alias set with 'svn' and that was what over ridding the actual svn alias set by admin. Interestingly when i ran the alias command it did not show up this set alias.
Thanks for the help Corona688, appreciate it Smilie


This User Gave Thanks to babyPen1985 For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Shell script not working but command works in command prompt

Hi everyone I have a problem with my script If I try directly this command /usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz It works But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies

2. Shell Programming and Scripting

Command prompt

Hi All, Even changing .bash_profile, i am getting only $ as command prompt. My bash profile looks like this. PS1=" $ " stty columns 200 set -o vi if i run bash command and run PS1=" $ " then it is working as expected. $ bash (4 Replies)
Discussion started by: akshu.agni
4 Replies

3. Shell Programming and Scripting

Multiple command execution inside awk command during xml parsing

below is the output xml string from some other command and i will be parsing it using awk cat /tmp/alerts.xml <Alert id="10102" name="APP-DS-ds_ha-140018-componentFailure-S" alertDefinitionId="13982" resourceId="11427" ctime="1359453507621" fixed="false" reason="If Event/Log Level(ANY) and... (2 Replies)
Discussion started by: vivek d r
2 Replies

4. Shell Programming and Scripting

Want to terminate command execution when string found in the command output

Hi Experts, I am very much new to linux scripting, I am currently working on reducing my manual work and hence writing a script to automate few task. I am running below command to snmpwalk the router.. snmpwalk -v 3 -u WANDL_SU -a MD5 -A vfipmpls -x DES -X VfIpMpLs -l authPriv... (19 Replies)
Discussion started by: Hanumant.madane
19 Replies

5. UNIX for Advanced & Expert Users

autosys command(autorep) from command prompt

Hi, I am using AUTOSYS GUI based tool. But I want to get the job status from the UNIX command prompt. 1. I want to execute only autorep command in the UNIX command prompt. If need to execute this command what are the settings need to do that. 2. Is it possible for executing this... (5 Replies)
Discussion started by: onesuri
5 Replies

6. Shell Programming and Scripting

Code for execution command by command

a) cd /root/user/dir/sd/disk ./runInstaller -silent -responseFile b) cd /root1/user1 cp /root/user/dir/sd/disk/ram.txt now a) executes and starts running but b) interupts a) and is executed while a) is running on the other hand so I want b) to start only after successfull completion of... (6 Replies)
Discussion started by: sriki32
6 Replies

7. Shell Programming and Scripting

awk command in script gives error while same awk command at prompt runs fine: Why?

Hello all, Here is what my bash script does: sums number columns, saves the tot in new column, outputs if tot >= threshold val: > cat getnon0file.sh #!/bin/bash this="getnon0file.sh" USAGE=$this" InFile="xyz.38" Min="0.05" # awk '{sum=0; for(n=2; n<=NF; n++){sum+=$n};... (4 Replies)
Discussion started by: catalys
4 Replies

8. UNIX for Dummies Questions & Answers

What does $ represent in command prompt?

What does $ represent in command prompt? (2 Replies)
Discussion started by: ashok.g
2 Replies

9. Windows & DOS: Issues & Discussions

Command Prompt

Hi does anyone know know how to find out the password on a vista pc using command prompt /cmd not change it (1 Reply)
Discussion started by: popo123456789
1 Replies

10. SuSE

inconsistent ls command display at the command prompt & running as a cron job

Sir, I using the following commands in a file (part of a bigger script): #!/bin/bash cd /opt/oracle/bin ls -lt | tail -1 | awk '{print $6}' >> /tmp/ramb.out If I run this from the command prompt the result is: 2007-05-16 if I run it as a cron job then... (5 Replies)
Discussion started by: rajranibl
5 Replies
Login or Register to Ask a Question