12-04-2010
>LOGFILE=`echo $LINE | cut -d' ' -f1`.log appears to be your problem. It is either quoting or escaping.
Play around with that.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
#!/bin/ksh
LOG_DATE=`date +%Y%m`
export LOG_DATE
cd D:/Informatica/Informatica_share/SrcFiles/l
# mv SITE_ACTIVITY${LOG_DATE}*.CSV D:/Informatica/Informatica_share/SrcFiles/SITE_ACTIVITY${LOG_DATE}*.CSV
# mv SITE_ACTIVITY20050914114546.CSV... (6 Replies)
Discussion started by: vivekanandarpat
6 Replies
2. UNIX for Advanced & Expert Users
#!/bin/ksh
LOG_DATE=`date +%Y%m`
export LOG_DATE
cd D:/Informatica/Informatica_share/SrcFiles/l
# mv SITE_ACTIVITY${LOG_DATE}*.CSV D:/Informatica/Informatica_share/SrcFiles/SITE_ACTIVITY${LOG_DATE}*.CSV
# mv SITE_ACTIVITY20050914114546.CSV... (2 Replies)
Discussion started by: vivekanandarpat
2 Replies
3. Shell Programming and Scripting
Hi,
Some part of output:
================
$ hwmgr show scsi
SCSI DEVICE DEVICE DRIVER NUM DEVICE FIRST
HWID: DEVICEID HOSTNAME TYPE SUBTYPE OWNER PATH FILE VALID PATH
-------------------------------------------------------------------------
68: ... (10 Replies)
Discussion started by: mansa
10 Replies
4. Shell Programming and Scripting
I have input file like this
Input file:
ABC|abc_etc_passwd
XYZ|XYZ_etc_passwd
zXY|XYZ_etc_passwd
IJK|test_etc_passwd
KLM|test_etc_passwd
i want to do following in a loop.
grep 'ABC' *abc_etc_passwd*
grep 'XYZ' *XYZ_etc_passwd*
grep 'ZXY' *ZXY_etc_passwd*
i have tried this
for i... (2 Replies)
Discussion started by: pinnacle
2 Replies
5. Solaris
I am new to solaris and I replaced a faulty tape drive sun DLT7000
But, I am getting the follwoing error when system reboots
ltid deamon error drive index 1 is not correct, drive name /dev/rmt/2cbn is incorrect no such file or directory.
I have two drives the other one is /dev/rmt/0cbn,... (8 Replies)
Discussion started by: latif1958
8 Replies
6. Shell Programming and Scripting
###############
#filename.sh
###############
CUREENT_DATE=02
log_file_path="$CUREENT_DATE"-"${0##%*/}`|cut -d "." -f1|awk -F "/" '{print $NF}'`"".log"
echo $log_file_path
################
#output required
02-filename.log (6 Replies)
Discussion started by: mohitmehral
6 Replies
7. Shell Programming and Scripting
Hello all; hope someone can help me cause I am going crazy trying to find a solution for (what I think is simple) issue...looked hard up and down this forum and tried several "solutions" with no avail...so here's my issue:
I have this (parent) script: copylsofdcmcadefttosftpwithmove.sh
... (3 Replies)
Discussion started by: gvolpini
3 Replies
8. Shell Programming and Scripting
Hello Brains,
I was trying to develop a script that would do nslookup using both name and ip of server and format the output and store in an output file. Please find the script below.
#!/usr/bin/ksh
cat $1 | tr "" "" |
while read ip name
do
ERROR="$(nslookup $ip | grep can't | awk -F"... (2 Replies)
Discussion started by: Praveen P
2 Replies
9. Shell Programming and Scripting
Hi everyone,
The following piece of awk code works fine if I use eval builtin
var='$1,$2'
ps | eval "awk '{print $var}'"
But when I try to knock off eval and use awk variable as substitute then I am not getting the expected result
ps | awk -v v1=$var '{print v1}' # output is $1,$2
ps |... (4 Replies)
Discussion started by: royalibrahim
4 Replies
10. Shell Programming and Scripting
Dear all,
I am using sed as an alternative to grep in order to get a specific line from each of multiple files located in the same directory. I am using sed because it prints the lines in the correct order (unlike grep).
When I write sed code that prints out the output I get it correct, but... (1 Reply)
Discussion started by: JaNaJaNa
1 Replies
LEARN ABOUT DEBIAN
vagalumectl
vagalumectl(1) General Commands Manual vagalumectl(1)
NAME
vagalumectl - Remotely control Vagalume via its D-Bus interface
SYNOPSIS
vagalumectl [command]
DESCRIPTION
This manual page documents briefly the vagalumectl command.
vagalumectl is a front end to easily control the Vagalume Last.fm client via its D-Bus interface without having to use low-level commands.
COMMANDS
play Start playing the last selected radio.
skip Skip to the next song.
stop Stop playing.
love Mark the current song as 'loved'.
ban Mark the current song as 'banned' and skip to the next one.
globaltag tag
Play a 'global tag' radio.
artist artist
Play a 'similar artists' radio.
group group
Play a 'Last.fm group' radio.
loved user
Play a user's 'loved tracks' radio.
mix user
Play a user's mix radio
neighbours user
Play a user's 'neighbours' radio.
library user
Play a user's library
playlist user
Play a user's playlist.
playurl url
Play an arbitrary radio URL.
volumeup [inc]
Increase playback volume. If inc is not specified it takes 5 as the default value. This command is not available on all platforms.
volumedown [inc]
Decrease playback volume. If inc is not specified it takes 5 as the default value. This command is not available on all platforms.
volume value
Set the playback volume to a specific value. This command is not available on all platforms.
start Start Vagalume (unless already running).
close Close Vagalume (unless already closed).
help Show a quick reference of all available commands.
EXAMPLES
Start playing the last selected radio:
$ vagalumectl play
Play your loved tracks' radio:
$ vagalumectl loved YOURUSERNAME
Play your best friend's playlist:
$ vagalumectl playlist USERNAME
Please notice that quotes are recommended around parameters that might contain white spaces, such as tag or artist , e.g:
$ vagalumectl tag "hard rock"
$ vagalumectl artist "Led Zeppelin"
SEE ALSO
vagalume(1)
AUTHOR
This manpage has been written by Mario Sanchez Prada <msanchez@igalia.com>
2010-10-30 vagalumectl(1)