The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find cmd not working as expected Vishal123 Shell Programming and Scripting 6 08-29-2007 02:11 AM
#/usr/bin/csh -f not working as expected? effigy Shell Programming and Scripting 4 06-05-2006 05:00 PM
Var substitution in awk - not working as expected videsh77 Shell Programming and Scripting 3 01-13-2006 01:57 PM
ls not working as expected within ksh GNMIKE Shell Programming and Scripting 10 07-07-2005 07:53 AM
awk not working as expected with BIG files ... videsh77 Shell Programming and Scripting 1 02-24-2005 04:15 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-07-2004
osee osee is offline
Registered User
  
 

Join Date: Aug 2002
Location: Budapest, Hungary
Posts: 16
which not working as expected

Hello.

Consider the following magic words:

# ls `which adduser`
ls: /usr/sbin/adduser: No such file or directory
#

Hmmm...
Then:
# ls /usr/sbin/adduser
/usr/sbin/adduser
#

Now what?
Unforunately this little sniippet is used in my debian woody server's mysql pre install script. Which means I can't upgrade or remove it.

What is causing it?
Debian woody running bash 2.05a-11.
  #2 (permalink)  
Old 09-07-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
What does this show?

echo `which adduser` | od -c
  #3 (permalink)  
Old 09-07-2004
osee osee is offline
Registered User
  
 

Join Date: Aug 2002
Location: Budapest, Hungary
Posts: 16
Oh, man....

0000000 033 ] 0 ; w a l l : / r o o t \a /
0000020 u s r / s b i n / a d d u s e r
0000040 \n
0000041


This was a real eye-opener.
khm... I've done some prompt magic. Disabling that the whole thing was fixed

Thank you very much indeed.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0