Search Results

Search: Posts Made By: Zammy_bg
3,437
Posted By Zammy_bg
Ok... the first backslash removes the special...
Ok... the first backslash removes the special meaning of the second backslash.
The real username is STUDIN\eip060.
So when I write `last STUDIN\\eip060` I get list of my loggings but when I do ......
3,437
Posted By Zammy_bg
+ '[' 1 = 0 ']' + USER_NAME=eip060 +...
+ '[' 1 = 0 ']'
+ USER_NAME=eip060
+ FILE_NAME=eip060.info
+ UNN='STUDIN\\eip060'
+ echo 'STUDIN\\eip060'
STUDIN\\eip060
+ last 'STUDIN\\eip060'

wtmp begins Mon Apr 2 09:14:18 2007
+ last...
3,437
Posted By Zammy_bg
Basic variable expansion not working...
#!/usr/bin/bash

if [ $# = 0 ]
then
echo "Not valid arguments entered. Just username should be entered."
else

USER_NAME=$1
FILE_NAME=$USER_NAME.info
UNN=STUDIN\\\\$1
echo $UNN

last...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 10:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy