Sponsored Content
Top Forums Shell Programming and Scripting cd command is not working in my shell script Post 302138696 by amitrajvarma on Wednesday 3rd of October 2007 04:45:51 AM
Old 10-03-2007
Hi Porter,

could you suggest, how to keep the control on the cd /vob/ios/sys
folder. ie

I dont cd to come back to my home.

My requirement, once I cd to /vob/ios/sys.. I need to execute one script

Could you help

Thanks

Amit
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

"sed" command is not working in shell script

Hi All, I am not much strong in shell scripting... I am using sed command in my script to find and replace a string....... This is how script looks : ############# #!/usr/bin/ksh CONFIG_FILE=iom_test.txt FIND=`echo "NIS_FTP_SERVER1=123.456.iom.com"` REPLACE=`echo... (2 Replies)
Discussion started by: askumarece
2 Replies

2. Shell Programming and Scripting

awk command not working from the shell script

Hi, When i run the below command i am able to get the output. awk '/BEGIN DSSUBRECORD/{c=3;next}c-->0' abc.txt | awk '/END DSSUBRECORD/{exit}{print}' | awk '/Owner/{exit}{print}' | awk '{n2=n1;n1=n;n=$0;if(NR%3==0){printf"%s,%s,%s\n",n2,n1,n}}' Output: Name "file_name", ... (5 Replies)
Discussion started by: onesuri
5 Replies

3. UNIX for Dummies Questions & Answers

perl command in shell not working

perl script i am using for search and replace is not working as expected... I am using it for in-place search/replace. I am new to perl, can someone please help me solving the issue here. ########SCRIPT #!/bin/sh var="abc" var2="def" perl -pi -e 's/${var}/def/g' testfile exit 0 ... (0 Replies)
Discussion started by: manishma71
0 Replies

4. Shell Programming and Scripting

Need help! command working ok when executed in command line, but fails when run inside a script!

Hi everyone, when executing this command in unix: echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error. here is content of my script: tdbsrvr$ vi hc.sh "hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies

5. Shell Programming and Scripting

help with shell script: cp command not working, but mv command works...

Hello. I would like to ask your help regarding the cp command. We are using a cp command to create a back-up copy of our file but to no avail. It's just not working. We already checked the file and directory permissions and all seems correct. We have a script (ftp.script) which calls on... (1 Reply)
Discussion started by: udelalv
1 Replies

6. Shell Programming and Scripting

CD command not working in shell script

Hello All, I have tried many permutaion combinations in my shell script but cd command is not working in shell script. Can any one help me out in this. Below is my script. ############ #!/bin/sh set -x on BASE_DIR=/etc/init.d export BASE_DIR cd $BASE_DIR ############# but its... (8 Replies)
Discussion started by: ajaincv
8 Replies

7. Shell Programming and Scripting

Paste command not working in shell script

Hai , When i use paste command in command prompt its giving expected output but not in the script. Below is the example. $cat file 1 2 3 $cat file1 4 5 6 $paste -d ':' file file1 1:4 2:5 3:6 but when i used the same command in script its giving the output as below : 1 2 3 (3 Replies)
Discussion started by: Subbu123
3 Replies

8. Shell Programming and Scripting

sed working on command line but file unchanged when execute with Shell script

I have a simple task to replace unix line feed end of line characters with carriage returns. When I run the following “change file in place” sed instruction from the command line all the Line feeds are successfully replaced with Carriage returns. sed -i 's/$/\r/' lf_file.txt But that same... (1 Reply)
Discussion started by: hawkman2k
1 Replies

9. 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

10. Shell Programming and Scripting

Execute ssh command with additional terminal command to any remote user not working script

Hello i am having an issue with bash script and this is the code now=$(cat hosts1.txt | awk '{print $2;}') while read n ;do ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers' When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
tcxmlcheck(1)						      General Commands Manual						     tcxmlcheck(1)

NAME
tcxmlcheck - Check information in smil input file SYNOPSIS
tcxmlcheck [ options ] [ - ] COPYRIGHT
tcxmlcheck is Copyright (C) by Malanchini Marzio DESCRIPTION
tcxmlcheck Check a smil input file. Most of the options are used by transcode at run time. OPTIONS
-i name Specify the name of the input video/audio smil file [stdin]. -p name Specify the name of the ausiliary audio smil file [none] -B Binary output to stdout (used by transcode) [off] Force to print to stdout the vob structure of the smil file -S Write stdin into shared memory (used by transcode)[off]. This is used by transcode at run time to store the vob information that will be modified by calling tcxmlcheck with the -V or -A options. -V Check only video smil file [off]. This is used by transcode at run time: it read the smil file to override some information in the vob structure. -A Check only ausiliary audio smil file [off]. This is used by transcode at run time: it read the smil file to override some informa- tion in the vob structure. -v Print the version EXAMPLES
Command: tcxmlcheck -i filename.smil Return 0 if the input file is correct, 1 with an error message in the other cases. tcxmlcheck -i filename.smil -S -B -V Analyze the filename.smil and store the vob structure into share memory (used only by transcode at run time). tcxmlcheck -i filename.smil -B -V Retrive the content from the share memory related to filename.smil (used only by transcode at run time). AUTHORS
tcxmlcheck was written by Marzio Malanchini <marzio_malanchini@vodafone.it> SEE ALSO
transcode(1) tcxmlcheck(1) 29th June 2003 tcxmlcheck(1)
All times are GMT -4. The time now is 03:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy