10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear All.
I have a script, which process files one by one. In the script I have two functions.
one sftp files to different server
the other from existing file create file with different name.
My question is:
Will sftp function recognize files names , which are created in another... (1 Reply)
Discussion started by: digioleg54
1 Replies
2. Shell Programming and Scripting
Hello guys :)
I've a some issue with a function which use the bash colors in my script.
An example :
#!/bin/bash
set -x
log_in(){
host="srv1"
remote_files="log/"
LOG_FILE="logfile"
green='\033]; then
color_in_red=("${red}"$2"${none}")
echo -e... (2 Replies)
Discussion started by: Arnaudh78
2 Replies
3. Shell Programming and Scripting
hey guys, im trying to learn bourne shell atm and I'm having some issues with functions.
so heres my code:
#!/bin/bash
##functions
memory () {
free -m
}
space () {
df -h
}
ip () { (5 Replies)
Discussion started by: hawkfro12
5 Replies
4. Shell Programming and Scripting
Hi,
I have create a Shell Script, with one function.
I want to call the script file in Java Program.
It working fine. but the problem is the function in the Shell Script is not executed.
Please suggest me,
Regards,
Nanthagopal A (2 Replies)
Discussion started by: nanthagopal
2 Replies
5. Shell Programming and Scripting
my $sysdate = strftime('%Y-%m-%d', localtime );
biDeriveByDate('Table_Str',$sysdate,\@lIndx,\@lResVals)
In a perl script, when I'm trying to pass $sysdate to some external function it's not working since $sysdate is passed as a string mentioned above but my function is expecting a date value... (1 Reply)
Discussion started by: Devesh5683
1 Replies
6. Shell Programming and Scripting
This is my function which is creating three variables based on counter & writing these variable to database by calling another function writeRecord
but only one record is getting wrote in DB.... Please advise ASAP...:confused:
function InsertFtg
{
FTGSTR=""
echo "Saurabh is GREAT $#"
let... (2 Replies)
Discussion started by: omkar.sonawane
2 Replies
7. Shell Programming and Scripting
Hi,
I had a scripts which calls two function. One function will call another function, script is working fine but the second function is not calling the first function. Below is the script
#!/usr/bin/ksh
fun1() {
echo $DATETIME >> Test1.ksh
return 0
}
fun2() {
typeset DATETIME=`date... (5 Replies)
Discussion started by: somu_june
5 Replies
8. Shell Programming and Scripting
Hi All,
What is the problem with the following script:
function mmdd
{
dd=$2
case $1 in
"Jan") mm=01;;
"Feb") mm=02;;
"Mar") mm=03;;
"Apr") mm=04;;
"May") mm=05;;
"Jun") mm=06;;
"Jul") mm=07;;
"Aug") mm=08;;
"Sep") mm=09;;
"Oct") mm=10;;
"Nov") mm=11;;
"Dec") mm=12;;
*)... (3 Replies)
Discussion started by: Hiso
3 Replies
9. Shell Programming and Scripting
Hi,
I am trying to write a function in the shell script .
This function accepts two parameters. It is as following:
set_cache(i_SEQ_NAME,I_cache_size)
{
_sqlplus "BEGIN alter_seq_cache(i_SEQ_NAME, I_cache_size); END;"
}
_sqlplus is another function and has been working working.... (3 Replies)
Discussion started by: neeto
3 Replies
10. Shell Programming and Scripting
Hi All,
I have a function which reads parameter and gets the value from config file.
The entry in the file can be either of two
Name=value or
Name=value
so if the variant is not present it should return me the generic value ie Name without variant.
I am first searching for variant in... (4 Replies)
Discussion started by: gurukottur
4 Replies