10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have defined a function ln_s() for customizing the ln command in script1.sh.
echo "Starting Execution"
echo "End of Execution"
] && return
ln -s "$1" "$2"
My script1.sh executes another script2.sh which has the following entry
more script2.sh... (12 Replies)
Discussion started by: mohtashims
2. Shell Programming and Scripting
maybe I'm asking a VERY dumb question, but would anybody out there tell me, why this f****** script won't work if executed as a cronjob, but works fine if executed from a shell prompt?
date >>... (3 Replies)
Discussion started by: beislhur
3. Shell Programming and Scripting
I have to pick particular segments from a file and I have prepared below shell script.But its not working and I am not able to find out whats the issue.could you guys pls help?
DTM*472*20150808... (4 Replies)
Discussion started by: Venkata Prasad
4. Shell Programming and Scripting
I am trying to execute expect command inside by small bash script to login into servers using key authentication method. My script is as follows:
/usr/bin/expect -c "
spawn ssh -i /root/.ssh/id_rsa root@$HOST
expect -exact "Enter... (3 Replies)
Discussion started by: John Wilson
5. Shell Programming and Scripting
I have two files - input and commands
I want to read the input and replace a value in it with the contents in commands.
My script is like this.
Instead of printing the value in the commands file, it is simply printing $cmd in the output file.
Any pointers are highly... (1 Reply)
Discussion started by: jacobs.smith
6. Shell Programming and Scripting
Hi I have horrible script below, need help in renaming ls -l output into new filename format:
cp -pv original_path/.* newDirectory/owner_of_file.%dd%mm%y.file_extension.first_8_characters_of_original_filename
localuser@localuser:~ vi... (3 Replies)
Discussion started by: wolf@=NK
7. Shell Programming and Scripting
So i'm currently working on a project where I'm attempting to display information of users from the /etc/passwd file and also another information file holding addition information about users.
Problem is I've been trying to join the two files together and have all of the information about each... (2 Replies)
Discussion started by: Nostyx
8. Shell Programming and Scripting
sorry for the title, most of you must getting sick of reading something like
this, but I haven't found a solution, although I found many threads according
I'm working on a bash script that connects to a network printer with ftp
where I want to upload a pdf created... (3 Replies)
Discussion started by: le_mae
9. Shell Programming and Scripting
I'm trying to write a script that moves data that's older than 2 weeks to a different place.
It works well, EXCEPT, that when the script hits a file within a directory inside the working directory, it will move it to the root of the destination directory instead of putting it in the correct... (1 Reply)
Discussion started by: ugolee
10. Shell Programming and Scripting
So I need a script that does the following:
If a certain user is logged in
Echo “incorrect user”
This is my first stab...which doesn't work:
X="user=`ls -l /dev/console | cut -d " " -f 4`"
echo $Y (4 Replies)
Discussion started by: doubleminus